Move message logic to attack function