fix(Scripts/GruulsLair): Only players should deal aoe shatter damage (#15056)
This commit is contained in:
@@ -271,9 +271,13 @@ class spell_gruul_shatter : public SpellScript
|
|||||||
if (Unit* target = GetHitUnit())
|
if (Unit* target = GetHitUnit())
|
||||||
{
|
{
|
||||||
target->RemoveAurasDueToSpell(SPELL_STONED);
|
target->RemoveAurasDueToSpell(SPELL_STONED);
|
||||||
|
|
||||||
|
if (target->IsPlayer())
|
||||||
|
{
|
||||||
target->CastSpell((Unit*)nullptr, SPELL_SHATTER_EFFECT, true);
|
target->CastSpell((Unit*)nullptr, SPELL_SHATTER_EFFECT, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Register() override
|
void Register() override
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user