Refactored AttackBoost::isAffected