Unit: Fix Unit Flight UpdateSpeed not getting charmer bonuses
--HG-- branch : trunk
This commit is contained in:
1 parent
6914ee67dc
commit
2b81449f3e
1 file changed
+1
-1
+1
-1
@@ -11721,7 +11721,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
|
||||
uint32 owner_speed_mod = 0;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user