Spells/Auras: Implement SPELL_AURA_ACT_AS_CONTROL_ZONE

Port From (https://github.com/TrinityCore/TrinityCore/commit/66abfd1c530e81f24856825f7ebe5a1c1ba8c58e)
This commit is contained in:
Hondacrx
2024-09-02 22:52:08 -04:00
parent 957ca9898d
commit 72563b8ca3
4 changed files with 47 additions and 2 deletions
@@ -689,6 +689,14 @@ namespace Game.Entities
GetMap().PlayerRelocation(ToPlayer(), x, y, z, orientation);
else
GetMap().CreatureRelocation(ToCreature(), x, y, z, orientation);
var controlZoneAuras = GetAuraEffectsByType(AuraType.ActAsControlZone);
foreach (AuraEffect auraEffect in controlZoneAuras)
{
GameObject controlZone = GetGameObject(auraEffect.GetSpellInfo().Id);
if (controlZone != null)
GetMap().GameObjectRelocation(controlZone, x, y, z, orientation);
}
}
else if (turn)
UpdateOrientation(orientation);