added functions to determine if attacker can swing