aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Northrend
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-22 19:33:06 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-22 19:33:06 +0200
commitafeeddb0e9d899f94c4a6e3ca917d4d5d9f78e01 (patch)
treeb1fded06aba9351edc4d567d62754c429a237293 /src/server/scripts/Northrend
parent71422dcd699607df6b8425160b3a592575f9e556 (diff)
Core/Entities: Third part of removing GetGUIDLow() uses
Diffstat (limited to 'src/server/scripts/Northrend')
-rw-r--r--src/server/scripts/Northrend/isle_of_conquest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Northrend/isle_of_conquest.cpp b/src/server/scripts/Northrend/isle_of_conquest.cpp
index 7d4c396f29e..6e325747f2c 100644
--- a/src/server/scripts/Northrend/isle_of_conquest.cpp
+++ b/src/server/scripts/Northrend/isle_of_conquest.cpp
@@ -219,13 +219,13 @@ class spell_ioc_parachute_ic : public SpellScriptLoader
class StartLaunchEvent : public BasicEvent
{
public:
- StartLaunchEvent(float x, float y, float z, uint32 lowGuid) : _x(x), _y(y), _z(z), _lowGuid(lowGuid)
+ StartLaunchEvent(float x, float y, float z, ObjectGuid const& guid) : _x(x), _y(y), _z(z), _guid(guid)
{
}
bool Execute(uint64 /*time*/, uint32 /*diff*/)
{
- Player* player = sObjectMgr->GetPlayerByLowGUID(_lowGuid);
+ Player* player = ObjectAccessor::FindPlayer(_guid);
if (!player || !player->GetVehicle())
return true;
@@ -240,7 +240,7 @@ class StartLaunchEvent : public BasicEvent
private:
float _x, _y, _z;
- uint32 _lowGuid;
+ ObjectGuid _guid;
};
class spell_ioc_launch : public SpellScriptLoader
@@ -261,7 +261,7 @@ class spell_ioc_launch : public SpellScriptLoader
x = GetExplTargetDest()->GetPositionX();
y = GetExplTargetDest()->GetPositionY();
z = GetExplTargetDest()->GetPositionZ();
- GetCaster()->ToCreature()->m_Events.AddEvent(new StartLaunchEvent(x, y, z, GetHitPlayer()->GetGUIDLow()), GetCaster()->ToCreature()->m_Events.CalculateTime(2500));
+ GetCaster()->ToCreature()->m_Events.AddEvent(new StartLaunchEvent(x, y, z, GetHitPlayer()->GetGUID()), GetCaster()->ToCreature()->m_Events.CalculateTime(2500));
}
void Register() override