public void UpdateSpeedFactor() { var bns = CharacterFormulas.CalcSpeedBonus(Level, Class, Asda2Agility); if (bns > 1) { bns = 1; } SpeedFactor = UnitUpdates.GetMultiMod(FloatMods[(int)StatModifierFloat.Speed] + bns, DefaultSpeedFactor); var chr = this as Character; if (chr != null) { GlobalHandler.SendSpeedChangedResponse(chr.Client); } }