Created
November 11, 2011 20:59
-
-
Save tobmaps/1359233 to your computer and use it in GitHub Desktop.
WG, IOC cannons move bugfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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