summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-09-07 18:39:29 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-09-07 18:39:29 +0200
commitcbc16fc5033ae7bd49c053131ec842e8f3445041 (patch)
treecf8d4687cc8902da2d55e96821ccb693e1d2aaab /src/battle/struct
parentb7d95d6598b9040ae7af60fa1b18d9501e64c6f7 (diff)
Change turns to (move?.(attack+switch_wp)?)
Diffstat (limited to 'src/battle/struct')
-rw-r--r--src/battle/struct/btl_battle_action.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle/struct/btl_battle_action.erl b/src/battle/struct/btl_battle_action.erl
index 307043a..66c8304 100644
--- a/src/battle/struct/btl_battle_action.erl
+++ b/src/battle/struct/btl_battle_action.erl
@@ -88,7 +88,7 @@ decode (EncodedAction) ->
can_follow (nothing, attack) -> true;
can_follow (nothing, switch_weapon) -> true;
can_follow (nothing, move) -> true;
-can_follow (switch_weapon, attack) -> true;
+can_follow (move, switch_weapon) -> true;
can_follow (move, attack) -> true;
can_follow (_, _) -> false.