mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Scripts/TotFW: fixed a typo that was causing the vehicle object guid selector to return no vehicle
This commit is contained in:
@@ -954,7 +954,7 @@ class spell_alakir_relentless_storm_initial_vehicle_ride : public SpellScript
|
||||
void SetTarget(WorldObject*& target)
|
||||
{
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (ObjectGuid guid = instance->GetObjectGuid(DATA_FREE_RELENTLESS_STORM_INITIAL_VEHICLE))
|
||||
if (ObjectGuid guid = instance->GetGuidData(DATA_FREE_RELENTLESS_STORM_INITIAL_VEHICLE))
|
||||
if (Creature* hurricane = ObjectAccessor::GetCreature(*GetCaster(), guid))
|
||||
target = hurricane;
|
||||
}
|
||||
@@ -1118,7 +1118,7 @@ class spell_alakir_relentless_storm : public SpellScript
|
||||
void SetTarget(WorldObject*& target)
|
||||
{
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (ObjectGuid guid = instance->GetObjectGuid(DATA_FREE_RELENTLESS_STORM_VEHICLE))
|
||||
if (ObjectGuid guid = instance->GetGuidData(DATA_FREE_RELENTLESS_STORM_VEHICLE))
|
||||
if (Creature* hurricane = ObjectAccessor::GetCreature(*GetCaster(), guid))
|
||||
target = hurricane;
|
||||
}
|
||||
|
||||
@@ -1210,7 +1210,7 @@ class spell_conclave_of_wind_hurricane_ride_vehicle : public SpellScript
|
||||
void SetTarget(WorldObject*& target)
|
||||
{
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (ObjectGuid guid = instance->GetObjectGuid(DATA_FREE_HURRICANE_VEHICLE))
|
||||
if (ObjectGuid guid = instance->GetGuidData(DATA_FREE_HURRICANE_VEHICLE))
|
||||
if (Creature* hurricane = ObjectAccessor::GetCreature(*GetCaster(), guid))
|
||||
target = hurricane;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user