mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:40:44 +00:00
sam can't touch mirv (only mirv warhead) (#259)
This commit is contained in:
@@ -69,7 +69,12 @@ export class SAMMissileExecution implements Execution {
|
||||
this.pseudoRandom < this.hittingChanceHydrogen
|
||||
) {
|
||||
hit = true;
|
||||
} else if (this.pseudoRandom < this.hittingChance) {
|
||||
} else if (
|
||||
[UnitType.MIRVWarhead, UnitType.AtomBomb].includes(
|
||||
this.target.type(),
|
||||
) &&
|
||||
this.pseudoRandom < this.hittingChance
|
||||
) {
|
||||
hit = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user