Skip to content

Commit f73a179

Browse files
committed
Fix CBS targeting, v0.9.8
1 parent 1144295 commit f73a179

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
api(project(":darkbot-shared"))
2222
}
2323

24-
val apiVersion = "0.9.7"
24+
val apiVersion = "0.9.8"
2525

2626
allprojects {
2727
group = "eu.darkbot"

shared/src/main/java/eu/darkbot/shared/utils/SafetyFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ boolean canUse(SafetyInfo safety) {
8787
if (safety.getType() == SafetyInfo.Type.CBS) {
8888
return safety.getEntity()
8989
.map(c -> c instanceof BattleStation.Hull ? (BattleStation.Hull) c : null)
90-
.map(cbs -> cbs.getEntityInfo().isEnemy() || (cbs.getHullId() == 0 && safety.getCbsMode() == SafetyInfo.CbsMode.ALLY))
90+
.map(cbs -> !(cbs.getEntityInfo().isEnemy() || (cbs.getHullId() == 0 && safety.getCbsMode() == SafetyInfo.CbsMode.ALLY)))
9191
.orElse(false);
9292
}
9393
return safety.getRunMode().ordinal() <= this.ordinal();

0 commit comments

Comments
 (0)