mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +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:
@@ -241,7 +241,7 @@ struct npc_stolen_soul : public ScriptedAI
|
||||
});
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*id*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*id*/) override
|
||||
{
|
||||
_targetGuid = guid;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ struct boss_murmur : public BossAI
|
||||
return true;
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 index) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 index) override
|
||||
{
|
||||
if (index == GUID_MURMUR_NPCS)
|
||||
{
|
||||
|
||||
@@ -670,7 +670,7 @@ public:
|
||||
}
|
||||
|
||||
// Used for getting involved player guid. Parameter id is used for defining if is a large(Monument) or small(Relic) node
|
||||
void SetGUID(ObjectGuid guid, int32 id) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 id) override
|
||||
{
|
||||
me->SetCanFly(true);
|
||||
|
||||
|
||||
@@ -303,7 +303,7 @@ public:
|
||||
uint32 HealTimer;
|
||||
uint32 FrostShockTimer;
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*questId*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*questId*/) override
|
||||
{
|
||||
me->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
Start(true, false, guid);
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
npc_escortAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid playerGUID, int32 type) override
|
||||
void SetGUID(ObjectGuid const& playerGUID, int32 type) override
|
||||
{
|
||||
if (type == DATA_START_ENCOUNTER)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user