movemeent tweaks

This commit is contained in:
hz
2026-05-19 05:42:31 -05:00
parent 14e2c26e74
commit 762143918b
3 changed files with 118 additions and 15 deletions
@@ -153,6 +153,11 @@ public class UnitTrainingService
throw new InvalidOperationException("Select a different destination tile.");
}
if (HexDistance(request.FromQ, request.FromR, request.ToQ, request.ToR) != 1)
{
throw new InvalidOperationException("Archers can only move to adjacent tiles.");
}
if (!await CanMoveToAsync(username, request.ToQ, request.ToR))
{
throw new InvalidOperationException("Archers can only move to visible non-rival tiles.");