Rebase resync

This commit is contained in:
Antz 2020-02-17 09:19:44 +00:00
parent a0797532e8
commit 1997c1e903
3106 changed files with 11118 additions and 627576 deletions

View file

@ -129,7 +129,7 @@ bool ChatHandler::HandleDebugSendOpcodeCommand(char* /*args*/)
uint32 opcode;
ifs >> opcode;
WorldPacket data(opcode, 0);
WorldPacket data(Opcodes(opcode), 0);
while (!ifs.eof())
{
@ -186,7 +186,7 @@ bool ChatHandler::HandleDebugSendOpcodeCommand(char* /*args*/)
}
}
ifs.close();
DEBUG_LOG("Sending opcode %u", data.GetOpcode());
DEBUG_LOG("Sending opcode %u, %s", data.GetOpcode(), data.GetOpcodeName());
data.hexlike();
((Player*)unit)->GetSession()->SendPacket(&data);
PSendSysMessage(LANG_COMMAND_OPCODESENT, data.GetOpcode(), unit->GetName());
@ -1107,7 +1107,7 @@ bool ChatHandler::HandleDebugSpellModsCommand(char* args)
if (!typeStr)
return false;
uint16 opcode;
Opcodes opcode;
if (strncmp(typeStr, "flat", strlen(typeStr)) == 0)
opcode = SMSG_SET_FLAT_SPELL_MODIFIER;
else if (strncmp(typeStr, "pct", strlen(typeStr)) == 0)