From 20169598492a9de4e0acf4accca94c2af2a909df Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 16 Jul 2023 13:01:10 +0200 Subject: [PATCH] TestEntity: Mark Nova CEWS on a unit without a fusion engine as invalid --- megamek/src/megamek/common/verifier/TestEntity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/megamek/src/megamek/common/verifier/TestEntity.java b/megamek/src/megamek/common/verifier/TestEntity.java index f4ac496ee47..b4532182c7f 100755 --- a/megamek/src/megamek/common/verifier/TestEntity.java +++ b/megamek/src/megamek/common/verifier/TestEntity.java @@ -1358,6 +1358,10 @@ public boolean hasIllegalEquipmentCombinations(StringBuffer buff) { if (m.getType().hasFlag(MiscType.F_C3I) || m.getType().hasFlag(MiscType.F_NOVA)) { networks++; } + if (m.is(Sensor.NOVA) && (!getEntity().hasEngine() || !getEntity().getEngine().isFusion())) { + buff.append("Nova CEWS may only be used on units with a fusion engine\n"); + illegal = true; + } if (m.getType().hasFlag(MiscType.F_SRCS) || m.getType().hasFlag(MiscType.F_SASRCS) || m.getType().hasFlag(MiscType.F_CASPAR) || m.getType().hasFlag(MiscType.F_CASPARII)) { robotics++;