From 1e8fcf16f3d6b9fb3b2e3d6da5b8609e3451d7ce Mon Sep 17 00:00:00 2001 From: Biglad Date: Thu, 8 Oct 2009 13:39:56 +0100 Subject: * Force pvp flag on player if assisting player all ready flagged for pvp, (exploit fix) --HG-- branch : trunk --- src/game/Spell.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 631d38017c9..31348dedda9 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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); + } + } } -- cgit v1.2.3