diff options
author | Biglad <none@none> | 2009-10-08 13:39:56 +0100 |
---|---|---|
committer | Biglad <none@none> | 2009-10-08 13:39:56 +0100 |
commit | 1e8fcf16f3d6b9fb3b2e3d6da5b8609e3451d7ce (patch) | |
tree | e24f80096a8e03125d8b9c0a90b1375b8c7e66c1 /src | |
parent | 8aae7e2d09f290a9b8fb4d06c586ffc8b7b32cff (diff) |
* Force pvp flag on player if assisting player all ready flagged for pvp, (exploit fix)
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); + } + } } |