From f23db214ae3357dd06e5eff59cda1cb65b477439 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 17 Nov 2024 13:15:32 -0500 Subject: [PATCH] Core/Spells: Temporarily force old flight style mounts Port From (https://github.com/TrinityCore/TrinityCore/commit/7d36db7ede2597e032c0e8bec5eee79e7be2dd10) --- Source/Game/Entities/Player/Player.DB.cs | 3 +++ Source/Game/Spells/SpellManager.cs | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/Source/Game/Entities/Player/Player.DB.cs b/Source/Game/Entities/Player/Player.DB.cs index 67552f91a..d91bb9ab2 100644 --- a/Source/Game/Entities/Player/Player.DB.cs +++ b/Source/Game/Entities/Player/Player.DB.cs @@ -588,6 +588,9 @@ namespace Game.Entities } while (auraResult.NextRow()); } + + // TODO: finish dragonriding - this forces old flight mode + AddAura(404468, this); } bool _LoadHomeBind(SQLResult result) { diff --git a/Source/Game/Spells/SpellManager.cs b/Source/Game/Spells/SpellManager.cs index 1424a276f..1c8365b4f 100644 --- a/Source/Game/Spells/SpellManager.cs +++ b/Source/Game/Spells/SpellManager.cs @@ -4459,6 +4459,12 @@ namespace Game.Entities spellInfo.AttributesEx4 |= SpellAttr4.AuraIsBuff; }); + // TODO: temporary, remove with dragonriding + ApplySpellFix( [404468], spellInfo => + { + spellInfo.AttributesCu |= SpellCustomAttributes.AuraCannotBeSaved; + }); + foreach (var spellInfo in mSpellInfoMap.Values) { // Fix range for trajectory triggered spell