Core/Spells: Delay combat flagging for spell targets until spell missile lands

Port From (https://github.com/TrinityCore/TrinityCore/commit/ff99952dfb7d2b532de2d1aedc825fb96038f4c2)
This commit is contained in:
hondacrx
2022-09-07 13:14:36 -04:00
parent 1d1456b0bb
commit df33c48826
3 changed files with 64 additions and 12 deletions
+2 -2
View File
@@ -95,10 +95,10 @@ namespace Game.Entities
public bool IsPetInCombat() { return HasUnitFlag(UnitFlags.PetInCombat); }
public void SetInCombatWith(Unit enemy)
public void SetInCombatWith(Unit enemy, bool suppressPvpTargetCombat = false)
{
if (enemy != null)
m_combatManager.SetInCombatWith(enemy);
m_combatManager.SetInCombatWith(enemy, suppressPvpTargetCombat);
}
public void EngageWithTarget(Unit enemy)