From 10b1058e56079232728e3fc959709bc784e58b5b Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sun, 4 Mar 2018 09:22:28 +0100 Subject: Fixes missing cache timeout, tix being binary. --- src/struct/battle_action.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/struct/battle_action.erl') diff --git a/src/struct/battle_action.erl b/src/struct/battle_action.erl index 755b771..d6bda92 100644 --- a/src/struct/battle_action.erl +++ b/src/struct/battle_action.erl @@ -55,7 +55,7 @@ decode_mov_action (JSONMap) -> -spec decode_atk_action (map()) -> struct(). decode_atk_action (JSONMap) -> - TargetIX = maps:get(<<"tix">>, JSONMap), + TargetIX = binary_to_integer(maps:get(<<"tix">>, JSONMap)), #attack { target_ix = TargetIX }. -- cgit v1.2.3-70-g09d2