fix(Scripts/Ulduar): cast electrical charge only if player dies (#3480)

This commit is contained in:
mslmdevu
2020-10-17 00:24:39 +05:00
committed by GitHub
parent 9f93e554e6
commit 32da0eeb9e

View File

@@ -297,12 +297,12 @@ public:
void KilledUnit(Unit* who) override
{
if (_phase == 3)
me->CastSpell(me, SPELL_ELECTRICAL_CHARGE, true);
if (who->GetTypeId() != TYPEID_PLAYER)
return;
if (_phase == 3)
me->CastSpell(me, SPELL_ELECTRICAL_CHARGE, true);
Talk(SAY_STEELBREAKER_SLAY);
}