mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
fix(CI): revert sleep + fix shadowing variable issue (#9106)
This commit is contained in:
@@ -1246,10 +1246,14 @@ void Spell::SelectImplicitConeTargets(SpellEffIndex effIndex, SpellImplicitTarge
|
||||
|
||||
for (std::list<WorldObject*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
|
||||
{
|
||||
if (Unit* unitTarget = (*itr)->ToUnit())
|
||||
AddUnitTarget(unitTarget, effMask, false);
|
||||
if (Unit* unit = (*itr)->ToUnit())
|
||||
{
|
||||
AddUnitTarget(unit, effMask, false);
|
||||
}
|
||||
else if (GameObject* gObjTarget = (*itr)->ToGameObject())
|
||||
{
|
||||
AddGOTarget(gObjTarget, effMask);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user