Fixed a bug that disconnected the player controller from the attack and flinch functions.