fix(Scripts/SI): crash fix (#22744)
This commit is contained in:
parent
7756b41160
commit
c2b298eaac
1 changed files with 1 additions and 1 deletions
|
|
@ -499,7 +499,7 @@ struct npc_necrotic_shard : public ScriptedAI
|
|||
// Only Minions and the shard itself can deal damage.
|
||||
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType /*damageType*/, SpellSchoolMask /*damageSchoolMask*/) override
|
||||
{
|
||||
if (attacker->GetFactionTemplateEntry() != me->GetFactionTemplateEntry())
|
||||
if (attacker && attacker->GetFactionTemplateEntry() != me->GetFactionTemplateEntry())
|
||||
damage = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue