From 14b9be2982d774190c99c953009460c707595976 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:05:44 +0200 Subject: [PATCH] fix(Core/Players): healing pet should not reset PvP timer (#7541) - Closes #6128 --- src/server/game/Spells/Spell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index ce74a3949..756bea445 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -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(); }