mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -6502,21 +6502,21 @@ when attempting to use the PointMovementGenerator
|
||||
*/
|
||||
bool ChatHandler::HandleComeToMeCommand(const char *args)
|
||||
{
|
||||
Creature* caster = getSelectedCreature();
|
||||
|
||||
if(!caster)
|
||||
{
|
||||
SendSysMessage(LANG_SELECT_CREATURE);
|
||||
SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
char* newFlagStr = strtok((char*)args, " ");
|
||||
|
||||
if(!newFlagStr)
|
||||
return false;
|
||||
|
||||
uint32 newFlags = atoi(newFlagStr);
|
||||
uint32 newFlags = (uint32)strtoul(newFlagStr, NULL, 0);
|
||||
|
||||
Creature* caster = getSelectedCreature();
|
||||
if(!caster)
|
||||
{
|
||||
m_session->GetPlayer()->SetUnitMovementFlags(newFlags);
|
||||
SendSysMessage(LANG_SELECT_CREATURE);
|
||||
SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
caster->SetUnitMovementFlags(newFlags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user