diff options
author | QAston <qaston@gmail.com> | 2011-09-27 01:13:32 +0200 |
---|---|---|
committer | QAston <qaston@gmail.com> | 2011-09-27 01:13:32 +0200 |
commit | 75aeb15e90f50b69db2fd903c8df76e502f67d46 (patch) | |
tree | b1a0ac20800b64edeb7e737a70cb840f3b6a5ebe | |
parent | a409cc226c96ea0d74c67687d027632d89868aca (diff) |
Core/Spells: Allow AOE spells to hit stealthed targets.
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index a61b6f3f390..c06efa07de9 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -12366,8 +12366,8 @@ bool Unit::_IsValidAttackTarget(Unit const* target, SpellInfo const* bySpell) co if (IsOnVehicle(target) || m_vehicle->GetBase()->IsOnVehicle(target)) return false; - // can't attack invisible - if ((!bySpell || !(bySpell->AttributesEx6 & SPELL_ATTR6_CAN_TARGET_INVISIBLE)) && !canSeeOrDetect(target)) + // can't attack invisible (ignore stealth for aoe spells) + if ((!bySpell || !(bySpell->AttributesEx6 & SPELL_ATTR6_CAN_TARGET_INVISIBLE)) && !canSeeOrDetect(target, bySpell && bySpell->IsAOE())) return false; // can't attack dead |