mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 16:03:45 +00:00
feat(Core\Player): Added createplayerinfo_cast_spell support cast spell for some class spells (#9448)
This commit is contained in:
@@ -982,13 +982,22 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
||||
bool firstLogin = pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST);
|
||||
if (firstLogin)
|
||||
{
|
||||
|
||||
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
|
||||
|
||||
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(pCurrChar->getRace(), pCurrChar->getClass());
|
||||
for (uint32 spellId : info->castSpells)
|
||||
{
|
||||
pCurrChar->CastSpell(pCurrChar, spellId, true);
|
||||
}
|
||||
|
||||
// start with every map explored
|
||||
if (sWorld->getBoolConfig(CONFIG_START_ALL_EXPLORED))
|
||||
{
|
||||
for (uint8 i = 0; i < PLAYER_EXPLORED_ZONES_SIZE; i++)
|
||||
{
|
||||
pCurrChar->SetFlag(PLAYER_EXPLORED_ZONES_1 + i, 0xFFFFFFFF);
|
||||
}
|
||||
}
|
||||
|
||||
// Reputations if "StartAllReputation" is enabled, -- TODO: Fix this in a better way
|
||||
|
||||
Reference in New Issue
Block a user