*Make Unit::GetSpeed return correct value for creatures/players
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -10920,7 +10920,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
|
||||
|
||||
float Unit::GetSpeed( UnitMoveType mtype ) const
|
||||
{
|
||||
return m_speed_rate[mtype]*baseMoveSpeed[mtype];
|
||||
return m_speed_rate[mtype]*(IsControlledByPlayer() ? playerBaseMoveSpeed[mtype] : baseMoveSpeed[mtype]);
|
||||
}
|
||||
|
||||
void Unit::SetSpeed(UnitMoveType mtype, float rate, bool forced)
|
||||
|
||||
Reference in New Issue
Block a user