mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:00:42 +00:00
can only send MIRV to player owned land
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user