mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
@@ -1068,7 +1068,7 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
||||
// Xinef: fix vendors falling of player vehicle, due to isBeingLoaded checks
|
||||
if (pCurrChar->IsInWorld())
|
||||
{
|
||||
if (pCurrChar->GetMountBlockId() && !pCurrChar->HasAuraType(SPELL_AURA_MOUNTED))
|
||||
if (pCurrChar->GetMountBlockId() && !pCurrChar->HasMountedAura())
|
||||
{
|
||||
pCurrChar->CastSpell(pCurrChar, pCurrChar->GetMountBlockId(), true);
|
||||
pCurrChar->SetMountBlockId(0);
|
||||
|
||||
Reference in New Issue
Block a user