mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix resurrect bug
This commit is contained in:
parent
c781155df0
commit
3172175edf
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user