mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
refactor(Core): Make ObjectGuid const (#23170)
* cherry-pick commit (a7883380ce)
Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
This commit is contained in:
@@ -335,7 +335,7 @@ struct boss_archimonde : public BossAI
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 type) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 type) override
|
||||
{
|
||||
if (type == GUID_GAIN_SOUL_CHARGE_PLAYER)
|
||||
{
|
||||
|
||||
@@ -154,7 +154,7 @@ struct boss_ossirian : public BossAI
|
||||
}
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 action) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 action) override
|
||||
{
|
||||
if (action == ACTION_TRIGGER_WEAKNESS && guid != _firstCrystalGUID)
|
||||
{
|
||||
@@ -317,7 +317,7 @@ public:
|
||||
{
|
||||
go_ossirian_crystalAI(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 type) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 type) override
|
||||
{
|
||||
if (type == GUID_TRIGGER_PAIR)
|
||||
{
|
||||
|
||||
@@ -552,7 +552,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid /*guid*/, int32 type) override
|
||||
void SetGUID(ObjectGuid const& /*guid*/, int32 type) override
|
||||
{
|
||||
if (type == GUID_SCRIPT_INVOKER && _scriptRunning == false)
|
||||
{
|
||||
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
ImmuneFlagSet(false, _faction);
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid playerGUID, int32 faction) override
|
||||
void SetGUID(ObjectGuid const& playerGUID, int32 faction) override
|
||||
{
|
||||
_playerGUID = playerGUID;
|
||||
_faction = faction;
|
||||
|
||||
Reference in New Issue
Block a user