mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40: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:
@@ -1293,7 +1293,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*type*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*type*/) override
|
||||
{
|
||||
_chaseGUID = guid;
|
||||
}
|
||||
|
||||
@@ -533,7 +533,7 @@ public:
|
||||
return _bloodboltedPlayers.count(guid) != 0;
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 type = 0) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 type = 0) override
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -703,7 +703,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 id/* = 0*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 id/* = 0*/) override
|
||||
{
|
||||
if (id != ACTION_SHIP_VISITS_ENEMY && id != ACTION_SHIP_VISITS_SELF)
|
||||
return;
|
||||
|
||||
@@ -745,7 +745,7 @@ public:
|
||||
|
||||
ObjectGuid targetGUID;
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 type) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 type) override
|
||||
{
|
||||
if (type == -1)
|
||||
targetGUID = guid;
|
||||
|
||||
@@ -698,7 +698,7 @@ public:
|
||||
uint32 _existenceCheckTimer;
|
||||
uint16 _asphyxiationTimer;
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 type) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 type) override
|
||||
{
|
||||
if (type == DATA_TRAPPED_PLAYER)
|
||||
_trappedPlayerGUID = guid;
|
||||
|
||||
@@ -2536,7 +2536,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /* = 0*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /* = 0*/) override
|
||||
{
|
||||
_grabbedPlayer = guid;
|
||||
}
|
||||
|
||||
@@ -772,7 +772,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 type/* = 0*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 type/* = 0*/) override
|
||||
{
|
||||
if (type == ACTION_VRYKUL_DEATH)
|
||||
{
|
||||
|
||||
@@ -1421,7 +1421,7 @@ public:
|
||||
_playerGUID.Clear();
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*action*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*action*/) override
|
||||
{
|
||||
if (_playerGUID)
|
||||
return;
|
||||
|
||||
@@ -1093,7 +1093,7 @@ public:
|
||||
me->GetMotionMaster()->Clear();
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*id*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*id*/) override
|
||||
{
|
||||
if (playerGUID || events.HasTimeUntilEvent(998) || events.HasTimeUntilEvent(2))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user