mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
Rebase resync
This commit is contained in:
parent
a0797532e8
commit
1997c1e903
3106 changed files with 11118 additions and 627576 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue