Skip to content

Instantly share code, notes, and snippets.

@Demonid
Forked from Ramusik/gist:9720129
Created March 23, 2014 08:31
Show Gist options
  • Save Demonid/9720333 to your computer and use it in GitHub Desktop.
Save Demonid/9720333 to your computer and use it in GitHub Desktop.
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp
index 3e18213..23a2163 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_icecrown_gunship_battle.cpp
@@ -2244,10 +2244,12 @@ class spell_igb_gunship_fall_teleport : public SpellScriptLoader
void RelocateDest(SpellEffIndex /*effIndex*/)
{
+ Position offset1 = {0.0f, 0.0f, 36.0f, 0.0f};
+ Position offset2 = {0.0f, 0.0f, 21.0f, 0.0f};
if (GetCaster()->GetInstanceScript()->GetData(DATA_TEAM_IN_INSTANCE) == HORDE)
- GetHitDest()->RelocateOffset({ 0.0f, 0.0f, 36.0f, 0.0f });
+ GetHitDest()->RelocateOffset(offset1);
else
- GetHitDest()->RelocateOffset({ 0.0f, 0.0f, 21.0f, 0.0f });
+ GetHitDest()->RelocateOffset(offset2);
}
void Register() OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment