Core/Commands: Fix some commands still using phasemask
This commit is contained in:
1 parent
0b2e8431aa
commit
9dc4705ba5
6 files changed
+50
-20
No files matched your search
@@ -1097,7 +1097,13 @@ public:
|
||||
if (!*args)
|
||||
return false;
|
||||
|
||||
uint32 phase = atoul(args);
|
||||
uint32 phaseID = uint32(atoi((char*)args));
|
||||
if (!sPhaseStore.LookupEntry(phaseID))
|
||||
{
|
||||
handler->SendSysMessage(LANG_PHASE_NOTFOUND);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
Creature* creature = handler->getSelectedCreature();
|
||||
if (!creature || creature->IsPet())
|
||||
@@ -1108,8 +1114,8 @@ public:
|
||||
}
|
||||
|
||||
creature->ClearPhases();
|
||||
creature->SetInPhase(phase, true, true);
|
||||
creature->SetDBPhase(phase);
|
||||
creature->SetInPhase(phaseID, true, true);
|
||||
creature->SetDBPhase(phaseID);
|
||||
|
||||
creature->SaveToDB();
|
||||
|
||||
|
||||
Reference in new issue
Block a user