fix(Scripts/Ulduar): cast electrical charge only if player dies (#3480)
This commit is contained in:
@@ -297,12 +297,12 @@ public:
|
|||||||
|
|
||||||
void KilledUnit(Unit* who) override
|
void KilledUnit(Unit* who) override
|
||||||
{
|
{
|
||||||
if (_phase == 3)
|
|
||||||
me->CastSpell(me, SPELL_ELECTRICAL_CHARGE, true);
|
|
||||||
|
|
||||||
if (who->GetTypeId() != TYPEID_PLAYER)
|
if (who->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_phase == 3)
|
||||||
|
me->CastSpell(me, SPELL_ELECTRICAL_CHARGE, true);
|
||||||
|
|
||||||
Talk(SAY_STEELBREAKER_SLAY);
|
Talk(SAY_STEELBREAKER_SLAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user