242 {
243 if (reportUse)
244 {
246 {
248 {
249 creature->SetHomePosition(
homePos);
250 creature->GetMotionMaster()->MovePath(creature->GetEntry() * 10, false);
252 }
253
256 }
257
260 }
261
262 return true;
263 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ DONE
Definition: InstanceScript.h:60
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:690
@ DATA_CHROMAGGUS
Definition: blackwing_lair.h:37
@ DATA_GO_CHROMAGGUS_DOOR
Definition: blackwing_lair.h:46
@ GUID_LEVER_USER
Definition: boss_chromaggus.cpp:68
Position const homePos
Definition: boss_chromaggus.cpp:71
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
@ GO_FLAG_IN_USE
Definition: SharedDefines.h:1603
GameObject *const me
Definition: GameObjectAI.h:36
Definition: Creature.h:46
Definition: GameObject.h:121
void SetGoState(GOState state)
Definition: GameObject.cpp:2477
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:219
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:100
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:110
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:235
GameObject * GetGameObject(uint32 type)
Definition: InstanceScript.cpp:105