Skip to content

Commit f907ce0

Browse files
authored
fix(Core/Player): keep spectral gryphon mount when relogging as a ghost (azerothcore#26012)
1 parent 7de731b commit f907ce0

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/server/game/Handlers/CharacterHandler.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -950,16 +950,6 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
950950
// Place character in world (and load zone) before some object loading
951951
pCurrChar->LoadCorpse(holder.GetPreparedResult(PLAYER_LOGIN_QUERY_LOAD_CORPSE_LOCATION));
952952

953-
// setting Ghost+speed if dead
954-
if (pCurrChar->m_deathState != DeathState::Alive)
955-
{
956-
// not blizz like, we must correctly save and load player instead...
957-
if (pCurrChar->getRace() == RACE_NIGHTELF)
958-
pCurrChar->CastSpell(pCurrChar, 20584, true, 0); // auras SPELL_AURA_INCREASE_SPEED(+speed in wisp form), SPELL_AURA_INCREASE_SWIM_SPEED(+swim speed in wisp form), SPELL_AURA_TRANSFORM (to wisp form)
959-
960-
pCurrChar->CastSpell(pCurrChar, 8326, true, 0); // auras SPELL_AURA_GHOST, SPELL_AURA_INCREASE_SPEED(why?), SPELL_AURA_INCREASE_SWIM_SPEED(why?)
961-
}
962-
963953
// Set FFA PvP for non GM in non-rest mode
964954
if (sWorld->IsFFAPvPRealm() && !pCurrChar->IsGameMaster() && !pCurrChar->HasPlayerFlag(PLAYER_FLAGS_RESTING))
965955
if (!pCurrChar->HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP))

0 commit comments

Comments
 (0)