aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorjoschiwald <joschiwald@online.de>2013-08-18 01:41:10 +0200
committerjoschiwald <joschiwald@online.de>2013-08-18 01:41:10 +0200
commit2b19ba1879cbdb121abe99f8d1060628a0c7243f (patch)
treee50c7a58d55ea5e5caa6469d80aa2f8569e94fab /src/server/scripts/World
parentc32dbd1432b28206fee430da7e9f77d6053730fc (diff)
Misc: replace Unit::GetPlayer with ObjectAccessor::GetPlayer and some cosmetic changes
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/npcs_special.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
index 8e103f105c1..4efdf78154d 100644
--- a/src/server/scripts/World/npcs_special.cpp
+++ b/src/server/scripts/World/npcs_special.cpp
@@ -634,7 +634,7 @@ public:
void PatientDied(Location* point)
{
- Player* player = Unit::GetPlayer(*me, PlayerGUID);
+ Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID);
if (player && ((player->GetQuestStatus(6624) == QUEST_STATUS_INCOMPLETE) || (player->GetQuestStatus(6622) == QUEST_STATUS_INCOMPLETE)))
{
++PatientDiedCount;
@@ -1685,7 +1685,7 @@ public:
me->MonsterWhisper(whisp.c_str(), player->GetGUID());
if (victimGUID)
- if (Player* victim = Unit::GetPlayer(*me, victimGUID))
+ if (Player* victim = ObjectAccessor::GetPlayer(*me, victimGUID))
victim->RemoveAura(43906); // remove polymorph frog thing
me->AddAura(43906, player); // add polymorph frog thing
victimGUID = player->GetGUID();