destination indicator update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user