mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix resurrect bug
This commit is contained in:
@@ -127,11 +127,10 @@ bool PartyMemberValue::IsTargetOfSpellCast(Player* target, SpellEntryPredicate &
|
|||||||
if (spell && predicate.Check(spell->m_spellInfo))
|
if (spell && predicate.Check(spell->m_spellInfo))
|
||||||
{
|
{
|
||||||
ObjectGuid unitTarget = spell->m_targets.GetUnitTargetGUID();
|
ObjectGuid unitTarget = spell->m_targets.GetUnitTargetGUID();
|
||||||
if (unitTarget == targetGuid)
|
if (unitTarget && unitTarget == targetGuid)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
ObjectGuid corpseTarget = spell->m_targets.GetCorpseTargetGUID();
|
ObjectGuid corpseTarget = spell->m_targets.GetCorpseTargetGUID();
|
||||||
if (corpseTarget == corpseGuid)
|
if (corpseTarget && corpseTarget == corpseGuid)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user