Fixed a flipped condition in checking whether a player is affected by an attack.