Core/Spells: Prevent WPE exploits with spell targeting

Closes #1130
This commit is contained in:
vlad852
2011-05-16 01:51:58 +07:00
committed by tobmaps
parent 432136355e
commit b4f3b8f95e

View File

@@ -2074,10 +2074,13 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
pushType = PUSH_CHAIN;
break;
case TARGET_UNIT_TARGET_ALLY:
AddUnitTarget(target, i);
break;
case TARGET_UNIT_TARGET_RAID:
case TARGET_UNIT_TARGET_PARTY:
case TARGET_UNIT_TARGET_PUPPET:
AddUnitTarget(target, i);
if (IsValidSingleTargetSpell(target))
AddUnitTarget(target, i);
break;
case TARGET_UNIT_PARTY_TARGET:
case TARGET_UNIT_CLASS_TARGET: