Skip to content

Commit

Permalink
Merge pull request #6289 from Scoppio/feat/unnoficial-as-convert-gune…
Browse files Browse the repository at this point in the history
…mplacement

feat: allows gunEmplacement to be converted to Alpha Strike
  • Loading branch information
HammerGS authored Dec 20, 2024
2 parents b3da1c1 + d326780 commit 5aa20fe
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,16 @@ public ConversionData(Entity entity, AlphaStrikeElement element, CalculationRepo
/**
* Returns true if the given entity can be converted to AlphaStrike. This is
* only
* false for entities of some special types such as TeleMissile or
* GunEmplacement.
* false for entities of some special types such as TeleMissile.
* GunEmplacement is being allowed conversion as of 50.02 even though its not
* currently officially supported in rules as written, but it generates a valid unit that can be used in
* auto-resolution and other parts of the game. (Luana Coppio)
* Also returns false if entity is null.
*/
public static boolean canConvert(@Nullable Entity entity) {
return !(entity == null) && !((entity instanceof TeleMissile) || (entity instanceof FighterSquadron)
|| (entity instanceof EscapePods) || (entity instanceof EjectedCrew)
|| (entity instanceof ArmlessMek) || (entity instanceof GunEmplacement));
|| (entity instanceof ArmlessMek));
}

/**
Expand Down

0 comments on commit 5aa20fe

Please sign in to comment.