diff options
author | megamage <none@none> | 2009-05-31 18:31:43 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-31 18:31:43 -0500 |
commit | f979c23820ca205293e7a55b97fc8e2fe6648b61 (patch) | |
tree | 0fbbea3e44009f02057303a285899b7195acd6cd /src | |
parent | 1c5d306fbdf362d589c1b74d9a359c491d9c3228 (diff) |
*Fix the bug that healing pvp target does not make players enter pvp.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) ) { |