Skip to content

Instantly share code, notes, and snippets.

@tobmaps
Created November 11, 2011 20:59
Show Gist options
  • Save tobmaps/1359233 to your computer and use it in GitHub Desktop.
Save tobmaps/1359233 to your computer and use it in GitHub Desktop.
WG, IOC cannons move bugfix
diff --git a/src/server/game/Entities/Vehicle/Vehicle.cpp b/src/server/game/Entities/Vehicle/Vehicle.cpp
index 107e275..04666b8 100755
--- a/src/server/game/Entities/Vehicle/Vehicle.cpp
+++ b/src/server/game/Entities/Vehicle/Vehicle.cpp
@@ -172,7 +172,10 @@ void Vehicle::ApplyAllImmunities()
// Different immunities for vehicles goes below
switch (GetVehicleInfo()->m_ID)
{
- case 160:
+ // code below prevents a bug with moveable cannons
+ case 160: // Strand of the Ancients
+ case 244: // Wintergrasp
+ case 510: // Isle of Conquest
_me->SetControlled(true, UNIT_STAT_ROOT);
_me->ApplySpellImmune(0, IMMUNITY_STATE, SPELL_AURA_MOD_DECREASE_SPEED, true);
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment