diff --git a/src/strategy/values/PartyMemberValue.cpp b/src/strategy/values/PartyMemberValue.cpp index b5acdd4f..d7030ab6 100644 --- a/src/strategy/values/PartyMemberValue.cpp +++ b/src/strategy/values/PartyMemberValue.cpp @@ -127,11 +127,10 @@ bool PartyMemberValue::IsTargetOfSpellCast(Player* target, SpellEntryPredicate & if (spell && predicate.Check(spell->m_spellInfo)) { ObjectGuid unitTarget = spell->m_targets.GetUnitTargetGUID(); - if (unitTarget == targetGuid) + if (unitTarget && unitTarget == targetGuid) return true; - ObjectGuid corpseTarget = spell->m_targets.GetCorpseTargetGUID(); - if (corpseTarget == corpseGuid) + if (corpseTarget && corpseTarget == corpseGuid) return true; } }