mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/SI): crash fix (#22744)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user