diff --git a/src/GameServer/RemoteView/Character/UpdateCharacterStatsExtendedPlugIn.cs b/src/GameServer/RemoteView/Character/UpdateCharacterStatsExtendedPlugIn.cs index cffd101c9..80124d500 100644 --- a/src/GameServer/RemoteView/Character/UpdateCharacterStatsExtendedPlugIn.cs +++ b/src/GameServer/RemoteView/Character/UpdateCharacterStatsExtendedPlugIn.cs @@ -37,6 +37,7 @@ public async ValueTask UpdateCharacterStatsAsync() return; } + var maxAttackSpeed = this._player.GameContext.Configuration.Attributes.FirstOrDefault(a => a == Stats.AttackSpeed)?.MaximumValue ?? 200; await connection.SendCharacterInformationExtendedAsync( this._player.Position.X, this._player.Position.Y, @@ -66,7 +67,7 @@ await connection.SendCharacterInformationExtendedAsync( this._player.SelectedCharacter.GetMaximumFruitPoints(), (ushort)this._player.Attributes[Stats.AttackSpeed], (ushort)this._player.Attributes[Stats.MagicSpeed], - 200, // todo: This is the maximum attack speed, make configurable. + (ushort)maxAttackSpeed, (byte)this._player.SelectedCharacter.InventoryExtensions) .ConfigureAwait(false);