Core/Spells: EffectSanctuary should stop attack
Port From (https://github.com/TrinityCore/TrinityCore/commit/6c0af8743f48badbae43362ee61a61a22fde3fda)
This commit is contained in:
@@ -3265,6 +3265,9 @@ namespace Game.Spells
|
||||
if (unitTarget == null)
|
||||
return;
|
||||
|
||||
if (unitTarget.IsTypeId(TypeId.Player))
|
||||
unitTarget.ToPlayer().SendAttackSwingCancelAttack(); // melee and ranged forced attack cancel
|
||||
|
||||
unitTarget.GetHostileRefManager().UpdateVisibility();
|
||||
|
||||
var attackers = unitTarget.GetAttackers();
|
||||
|
||||
Reference in New Issue
Block a user