From 7d36db7ede2597e032c0e8bec5eee79e7be2dd10 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 9 Nov 2024 11:50:47 +0100 Subject: [PATCH] Core/Spells: Temporarily force old flight style mounts --- src/server/game/Entities/Player/Player.cpp | 3 +++ src/server/game/Spells/SpellMgr.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index dade7c080e9af..3fa8b482fd655 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -18779,6 +18779,9 @@ void Player::_LoadAuras(PreparedQueryResult auraResult, PreparedQueryResult effe } while (auraResult->NextRow()); } + + // TODO: finish dragonriding - this forces old flight mode + AddAura(404468, this); } void Player::_LoadGlyphAuras() diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index efe3c939252d0..8da3956617db7 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -5049,6 +5049,12 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->AttributesEx4 |= SPELL_ATTR4_AURA_IS_BUFF; }); + // TODO: temporary, remove with dragonriding + ApplySpellFix({ 404468 }, [](SpellInfo* spellInfo) + { + spellInfo->AttributesCu |= SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED; + }); + for (SpellInfo const& s : mSpellInfoMap) { SpellInfo* spellInfo = &const_cast(s);