mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
* Force pvp flag on player if assisting player all ready flagged for pvp, (exploit fix)
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user