fix(Scripts/GruulsLair): Only players should deal aoe shatter damage (#15056)

This commit is contained in:
Skjalf
2023-02-15 21:03:19 -03:00
committed by GitHub
parent 8303217a19
commit c41980b7ab

View File

@@ -271,7 +271,11 @@ class spell_gruul_shatter : public SpellScript
if (Unit* target = GetHitUnit())
{
target->RemoveAurasDueToSpell(SPELL_STONED);
target->CastSpell((Unit*)nullptr, SPELL_SHATTER_EFFECT, true);
if (target->IsPlayer())
{
target->CastSpell((Unit*)nullptr, SPELL_SHATTER_EFFECT, true);
}
}
}