From f979c23820ca205293e7a55b97fc8e2fe6648b61 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 31 May 2009 18:31:43 -0500 Subject: *Fix the bug that healing pvp target does not make players enter pvp. --HG-- branch : trunk --- src/game/Spell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index d04d4ab58fd..54d138a5e6a 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1201,7 +1201,8 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) if(unit->hasUnitState(UNIT_STAT_ATTACK_PLAYER)) { m_caster->SetContestedPvP(); - //m_caster->UpdatePvP(true); + if(m_caster->GetTypeId() == TYPEID_PLAYER) + ((Player*)m_caster)->UpdatePvP(true); } if( unit->isInCombat() && !(m_spellInfo->AttributesEx & SPELL_ATTR_EX_NO_INITIAL_AGGRO) ) { -- cgit v1.2.3