Core/Auras: Reimplement SPELL_AURA_DISABLE_CASTING_EXCEPT_ABILITIES to properly allow casting listed spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/1b8ef46808c44e68f213768c6a64ccc0048f3d65)
This commit is contained in:
@@ -5811,7 +5811,7 @@ namespace Game.Entities
|
||||
AddUnitFlag2(UnitFlags2.RegeneratePower);// must be set
|
||||
|
||||
// cleanup player flags (will be re-applied if need at aura load), to avoid have ghost flag without ghost aura, for example.
|
||||
RemovePlayerFlag(PlayerFlags.AFK | PlayerFlags.DND | PlayerFlags.GM | PlayerFlags.Ghost | PlayerFlags.AllowOnlyAbility);
|
||||
RemovePlayerFlag(PlayerFlags.AFK | PlayerFlags.DND | PlayerFlags.GM | PlayerFlags.Ghost);
|
||||
|
||||
RemoveVisFlags(UnitVisFlags.All); // one form stealth modified bytes
|
||||
RemovePvpFlag(UnitPVPStateFlags.FFAPvp | UnitPVPStateFlags.Sanctuary);
|
||||
|
||||
Reference in New Issue
Block a user