mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
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:
@@ -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