diff --git a/zone/merc.cpp b/zone/merc.cpp index 13f352033..4e635fe72 100644 --- a/zone/merc.cpp +++ b/zone/merc.cpp @@ -2156,7 +2156,7 @@ bool Merc::AICastSpell(int8 iChance, uint32 iSpellTypes) { if(castedSpell) { char* gmsg = nullptr; - if(tar != this) { + if(tar && tar != this) { // [tar] was implicitly valid at this point..this change is to catch any bad logic //we don't need spam of bots healing themselves MakeAnyLenString(&gmsg, "Casting %s on %s.", spells[selectedMercSpell.spellid].name, tar->GetCleanName()); if(gmsg)