diff --git a/megamek/src/megamek/client/bot/princess/ArtilleryTargetingControl.java b/megamek/src/megamek/client/bot/princess/ArtilleryTargetingControl.java index c78d2f23f27..fcf39db98da 100644 --- a/megamek/src/megamek/client/bot/princess/ArtilleryTargetingControl.java +++ b/megamek/src/megamek/client/bot/princess/ArtilleryTargetingControl.java @@ -170,13 +170,14 @@ public void initializeForTargetingPhase() { private boolean getADAAvailable(Entity shooter){ boolean available = false; for (Mounted weapon: shooter.getWeaponList()){ - if(((AmmoType) weapon.getLinked().getType()).getMunitionType().contains(AmmoType.Munitions.M_ADA) - && !weapon.isFired() && weapon.getLinked().getUsableShotsLeft() > 0){ - available = true; - break; + if (weapon.getType().hasFlag(WeaponType.F_ARTILLERY)){ + if(((AmmoType) weapon.getLinked().getType()).getMunitionType().contains(AmmoType.Munitions.M_ADA) + && !weapon.isFired() && weapon.getLinked().getUsableShotsLeft() > 0) { + available = true; + break; + } } } - return available; } /**