mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885)
This commit is contained in:
@@ -287,7 +287,7 @@ public:
|
||||
{
|
||||
corki->GetMotionMaster()->MovePoint(1, go->GetPositionX() + 5, go->GetPositionY(), go->GetPositionZ());
|
||||
if (player)
|
||||
player->KilledMonsterCredit(NPC_CORKI_CREDIT_1, 0);
|
||||
player->KilledMonsterCredit(NPC_CORKI_CREDIT_1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ public:
|
||||
{
|
||||
corki->GetMotionMaster()->MovePoint(1, go->GetPositionX() - 5, go->GetPositionY(), go->GetPositionZ());
|
||||
if (player)
|
||||
player->KilledMonsterCredit(NPC_CORKI_2, 0);
|
||||
player->KilledMonsterCredit(NPC_CORKI_2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ public:
|
||||
{
|
||||
corki->GetMotionMaster()->MovePoint(1, go->GetPositionX() + 4, go->GetPositionY(), go->GetPositionZ());
|
||||
if (player)
|
||||
player->KilledMonsterCredit(NPC_CORKI_CREDIT_3, 0);
|
||||
player->KilledMonsterCredit(NPC_CORKI_CREDIT_3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ public:
|
||||
uint32 HealTimer;
|
||||
uint32 FrostShockTimer;
|
||||
|
||||
void SetGUID(uint64 guid, int32 /*questId*/) override
|
||||
void SetGUID(ObjectGuid guid, int32 /*questId*/) override
|
||||
{
|
||||
me->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
Start(true, false, guid);
|
||||
@@ -583,7 +583,7 @@ public:
|
||||
|
||||
if (Creature* prisoner = go->FindNearestCreature(NPC_MAGHAR_PRISONER, 5.0f))
|
||||
{
|
||||
player->KilledMonsterCredit(NPC_MAGHAR_PRISONER, 0);
|
||||
player->KilledMonsterCredit(NPC_MAGHAR_PRISONER);
|
||||
|
||||
prisoner->AI()->Talk(SAY_FREE, player);
|
||||
prisoner->DespawnOrUnsummon(6000);
|
||||
|
||||
Reference in New Issue
Block a user