Unit: Fix Unit Flight UpdateSpeed not getting charmer bonuses

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-19 16:56:24 +02:00
parent 6914ee67dc
commit 2b81449f3e
+1 -1
View File
@@ -11721,7 +11721,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
uint32 owner_speed_mod = 0; uint32 owner_speed_mod = 0;
if (Unit * owner = GetCharmer()) if (Unit * owner = GetCharmer())
uint32 owner_speed_mod = owner->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED); owner_speed_mod = owner->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED);
main_speed_mod = main_speed_mod>owner_speed_mod ? main_speed_mod : owner_speed_mod; main_speed_mod = main_speed_mod>owner_speed_mod ? main_speed_mod : owner_speed_mod;
} }