mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: Add loginFirst param to OnLogin hook to allow doing things on first login only
whitespacefix Fix warning about unused param
This commit is contained in:
@@ -1242,9 +1242,9 @@ void ScriptMgr::OnPlayerSpellCast(Player* player, Spell* spell, bool skipCheck)
|
||||
FOREACH_SCRIPT(PlayerScript)->OnSpellCast(player, spell, skipCheck);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerLogin(Player* player)
|
||||
void ScriptMgr::OnPlayerLogin(Player* player, bool firstLogin)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnLogin(player);
|
||||
FOREACH_SCRIPT(PlayerScript)->OnLogin(player, firstLogin);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerLogout(Player* player)
|
||||
|
||||
Reference in New Issue
Block a user