player-attacking-function added