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:
1 parent
c93c27d056
commit
732e27f1e8
3 files changed
+158
-119
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user