mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 17:53:29 +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
|
this.pseudoRandom < this.hittingChanceHydrogen
|
||||||
) {
|
) {
|
||||||
hit = true;
|
hit = true;
|
||||||
} else if (this.pseudoRandom < this.hittingChance) {
|
} else if (
|
||||||
|
[UnitType.MIRVWarhead, UnitType.AtomBomb].includes(
|
||||||
|
this.target.type(),
|
||||||
|
) &&
|
||||||
|
this.pseudoRandom < this.hittingChance
|
||||||
|
) {
|
||||||
hit = true;
|
hit = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user