destination indicator update

This commit is contained in:
hz
2026-05-20 19:21:09 -05:00
parent 94f3b1e258
commit a40c8cf50d
3 changed files with 160 additions and 7 deletions
@@ -186,9 +186,9 @@ public class UnitTrainingService
await RefillMovementAsync(username);
var normalizedUnitType = NormalizeUnitType(request.UnitType);
if (normalizedUnitType != ArcherUnitType && normalizedUnitType != PeasantUnitType)
if (normalizedUnitType != ScoutUnitType && normalizedUnitType != ArcherUnitType && normalizedUnitType != PeasantUnitType)
{
throw new ArgumentException("Only Archers and Peasants can be moved right now.", nameof(request.UnitType));
throw new ArgumentException("Only Scouts, Archers, and Peasants can be moved right now.", nameof(request.UnitType));
}
if (request.FromQ == request.ToQ && request.FromR == request.ToR)