* Force pvp flag on player if assisting player all ready flagged for pvp, (exploit fix)

--HG--
branch : trunk
This commit is contained in:
Biglad
2009-10-08 13:39:56 +01:00
parent 8aae7e2d09
commit 1e8fcf16f3

View File

@@ -1233,6 +1233,14 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
// Needs to be called after dealing damage/healing to not remove breaking on damage auras
DoTriggersOnSpellHit(spellHitTarget);
// if target is fallged for pvp also flag caster if a player
if(unit->IsPvP())
{
if (m_caster->GetTypeId() == TYPEID_PLAYER)
((Player*)m_caster)->UpdatePvP(true);
}
}
}