Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public class SafetyFinder {
public enum Escaping {
ENEMY, SIGHT, REPAIR, REFRESH, WAITING, NONE;
boolean canUse(SafetyInfo safety) {
if (safety.runMode == SafetyInfo.RunMode.NEVER) {
return false; // Never use this safety
}
if (safety.type == SafetyInfo.Type.CBS) {
BattleStation cbs = ((BattleStation) safety.entity);
// Ignore enemy CBS, and if set to ALLY only, ignore empty meteorites (hull = 0)
Expand Down