Skip to content

Commit 33df8a4

Browse files
committed
AI should not attack rescue attempts by teammates.
GitOrigin-RevId: be5765c0db85710f49b4c68fd5b8677f5afe8377
1 parent ca561b4 commit 33df8a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dionysus/lib/getPossibleAttacks.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ export default function getPossibleAttacks(
150150
) {
151151
if (
152152
!entityB.isBeingRescued() ||
153-
entityB.isBeingRescuedBy(unitA.player)
153+
map
154+
.getTeam(unitA.player)
155+
.players.some((player) => entityB.isBeingRescuedBy(player.id))
154156
) {
155157
return;
156158
}

0 commit comments

Comments
 (0)