mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Mant more cmangos Cata commits applied
Commit:
This commit is contained in:
parent
6db0ba8ae9
commit
8cac2f42db
51 changed files with 964 additions and 270 deletions
|
|
@ -2302,7 +2302,7 @@ bool ChatHandler::HandleLearnAllCommand(char* /*args*/)
|
|||
int loop = 0;
|
||||
while (strcmp(allSpellList[loop], "0"))
|
||||
{
|
||||
uint32 spell = atol((char*)allSpellList[loop++]);
|
||||
uint32 spell = std::stoul((char*)allSpellList[loop++]);
|
||||
|
||||
if (m_session->GetPlayer()->HasSpell(spell))
|
||||
continue;
|
||||
|
|
@ -2345,7 +2345,7 @@ bool ChatHandler::HandleLearnAllGMCommand(char* /*args*/)
|
|||
uint16 gmSpellIter = 0;
|
||||
while (strcmp(gmSpellList[gmSpellIter], "0"))
|
||||
{
|
||||
uint32 spell = atol((char*)gmSpellList[gmSpellIter++]);
|
||||
uint32 spell = std::stoul((char*)gmSpellList[gmSpellIter++]);
|
||||
|
||||
SpellEntry const* spellInfo = sSpellStore.LookupEntry(spell);
|
||||
if (!spellInfo || !SpellMgr::IsSpellValid(spellInfo, m_session->GetPlayer()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue