diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-22 11:39:24 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 220c14fc4d2ec803a8fecb11e81b6d005239281c (patch) | |
tree | ba3f8b5031d8795ddd1fb79027aaa4ac2e078bac | |
parent | 12075d7532c9597d3cc7817e91a891ce888514ca (diff) | |
download | nevsky-220c14fc4d2ec803a8fecb11e81b6d005239281c.tar.gz |
Fix Avoid Battle with multiple ways.
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4959,10 +4959,11 @@ states.avoid_battle_way = { let to = game.march.avoid_to let ways = list_ways(from, to) for (let i = 1; i < ways.length; ++i) - gen_action_way(ways[i]) + if (can_avoid_battle(to, ways[i])) + gen_action_way(ways[i]) }, way(way) { - game.avoid_way = way + game.march.avoid_way = way avoid_battle_1() }, } |