Core/Spells: Spells having the same effect types on multiple effects will now select them at the same time (except targets selected by entry) to ensure correct behavior with MaxAffectedTargets use

This commit is contained in:
Shauren
2011-09-16 11:40:53 +02:00
parent c93c27d056
commit 732e27f1e8
3 changed files with 158 additions and 119 deletions

View File

@@ -1374,7 +1374,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
for (uint32 i = 0; i < maxTargets; ++i)
{
Unit* attacker = SelectRandomContainerElement(attackers);
AddUnitTarget(attacker, 1);
AddUnitTarget(attacker, 1 << 1);
attackers.erase(attacker);
}