*Fix the bug that healing pvp target does not make players enter pvp.
--HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -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) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user