fix(Core/Players): healing pet should not reset PvP timer (#7541)

- Closes #6128
This commit is contained in:
UltraNix
2021-08-30 11:05:44 +02:00
committed by GitHub
parent 40f6e830e8
commit 14b9be2982

View File

@@ -2697,8 +2697,11 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
// if target is fallged for pvp also flag caster if a player
// xinef: do not flag spells with aura bind sight (no special attribute)
if (effectUnit->IsPvP() && effectUnit != m_caster && m_caster->GetTypeId() == TYPEID_PLAYER && !m_spellInfo->HasAura(SPELL_AURA_BIND_SIGHT))
if (effectUnit->IsPvP() && effectUnit != m_caster && effectUnit->GetOwnerGUID() != m_caster->GetGUID() &&
m_caster->GetTypeId() == TYPEID_PLAYER && !m_spellInfo->HasAura(SPELL_AURA_BIND_SIGHT))
{
m_caster->ToPlayer()->UpdatePvP(true);
}
CallScriptAfterHitHandlers();
}