can only send MIRV to player owned land

This commit is contained in:
Evan
2025-02-09 12:14:53 -08:00
parent d8f4ee2804
commit 74f523a770
+4
View File
@@ -569,6 +569,10 @@ export class PlayerImpl implements Player {
}
switch (unitType) {
case UnitType.MIRV:
if (!this.mg.hasOwner(targetTile)) {
return false;
}
return this.nukeSpawn(targetTile);
case UnitType.AtomBomb:
case UnitType.HydrogenBomb:
return this.nukeSpawn(targetTile);