mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/Players): healing pet should not reset PvP timer (#7541)
- Closes #6128
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user