fix melee

getCurrentAction() only works for player actions.