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:
Rochet2
2014-06-21 15:40:58 +03:00
parent 8ddf289e2f
commit 7240fafe94
5 changed files with 10 additions and 8 deletions

View File

@@ -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)