movemeent tweaks
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user