Core/Misc: random refactors

(cherry picked from commit 37dff2b7a1)
This commit is contained in:
Treeston
2017-08-27 13:35:03 +02:00
committed by Shauren
parent 27806eeac9
commit 06a1271a50
5 changed files with 6 additions and 7 deletions

View File

@@ -266,8 +266,7 @@ public:
}
map->GetInstanceScript()->SetBossState(encounterId, EncounterState(state));
std::string stateName = InstanceScript::GetBossStateName(state);
handler->PSendSysMessage(LANG_COMMAND_INST_SET_BOSS_STATE, encounterId, state, stateName.c_str());
handler->PSendSysMessage(LANG_COMMAND_INST_SET_BOSS_STATE, encounterId, state, InstanceScript::GetBossStateName(state));
return true;
}
@@ -331,8 +330,7 @@ public:
}
int32 state = map->GetInstanceScript()->GetBossState(encounterId);
std::string stateName = InstanceScript::GetBossStateName(state);
handler->PSendSysMessage(LANG_COMMAND_INST_GET_BOSS_STATE, encounterId, state, stateName.c_str());
handler->PSendSysMessage(LANG_COMMAND_INST_GET_BOSS_STATE, encounterId, state, InstanceScript::GetBossStateName(state));
return true;
}
};

View File

@@ -16,6 +16,7 @@
*/
#include "InstanceScript.h"
#include "Map.h"
#include "ObjectAccessor.h"
#include "PassiveAI.h"
#include "Player.h"