mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 08:16:08 +00:00
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885)
This commit is contained in:
@@ -77,7 +77,10 @@ public:
|
||||
BossAI::Reset();
|
||||
instance->SetBossState(DATA_NOVOS_CRYSTALS, IN_PROGRESS);
|
||||
instance->SetBossState(DATA_NOVOS_CRYSTALS, NOT_STARTED);
|
||||
_crystalCounter = _summonTargetRightGUID = _summonTargetLeftGUID = _stage = 0;
|
||||
_crystalCounter = 0;
|
||||
_summonTargetRightGUID.Clear();
|
||||
_summonTargetLeftGUID.Clear();
|
||||
_stage = 0;
|
||||
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
@@ -133,7 +136,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
me->SetUInt64Value(UNIT_FIELD_TARGET, 0);
|
||||
me->SetGuidValue(UNIT_FIELD_TARGET, ObjectGuid::Empty);
|
||||
me->RemoveAllAuras();
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
@@ -240,8 +243,8 @@ public:
|
||||
private:
|
||||
uint8 _crystalCounter;
|
||||
uint8 _stage;
|
||||
uint64 _summonTargetRightGUID;
|
||||
uint64 _summonTargetLeftGUID;
|
||||
ObjectGuid _summonTargetRightGUID;
|
||||
ObjectGuid _summonTargetLeftGUID;
|
||||
|
||||
bool _achievement;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user