Core/Vehicles: Fix some movable turrets

This commit is contained in:
tobmaps
2011-11-12 04:04:22 +07:00
parent 9d08f4fd75
commit c5e316164f

View File

@@ -172,8 +172,12 @@ void Vehicle::ApplyAllImmunities()
// Different immunities for vehicles goes below
switch (GetVehicleInfo()->m_ID)
{
case 160:
// code below prevents a bug with movable cannons
case 160: // Strand of the Ancients
case 244: // Wintergrasp
case 510: // Isle of Conquest
_me->SetControlled(true, UNIT_STAT_ROOT);
// why we need to apply this? we can simple add immunities to slow mechamic in DB
_me->ApplySpellImmune(0, IMMUNITY_STATE, SPELL_AURA_MOD_DECREASE_SPEED, true);
break;
default: