Core/Commands: Fix some commands still using phasemask

This commit is contained in:
Aokromes committed 2017-11-08 01:41:09 +01:00
1 parent 0b2e8431aa
commit 9dc4705ba5
6 files changed
+50 -20

No files matched your search

+9 -3
View File
@@ -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();