added a check to cmds/player/attack