aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/Spell.cpp8
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);
+ }
+
}
}