Skip to content

Commit

Permalink
Core/Spells: Temporarily force old flight style mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Nov 9, 2024
1 parent ea9b8a2 commit 7d36db7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 6 additions & 0 deletions src/server/game/Spells/SpellMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SpellInfo&>(s);
Expand Down

0 comments on commit 7d36db7

Please sign in to comment.