summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-22 16:45:05 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-22 16:45:05 +0100 |
commit | 9dd67cd5c63ac2a050a517c313f2e343f008421b (patch) | |
tree | 44d774f751b82cb09996625c3eb2c9aaecb1330f /src/battlemap_instance.erl | |
parent | 15515f36d7bbd53c7049c597ea2c6f942dc39ded (diff) |
Got the player turns to work... I think.
Diffstat (limited to 'src/battlemap_instance.erl')
-rw-r--r-- | src/battlemap_instance.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/battlemap_instance.erl b/src/battlemap_instance.erl index 37811b3..3f4b6cd 100644 --- a/src/battlemap_instance.erl +++ b/src/battlemap_instance.erl @@ -26,7 +26,15 @@ can_play_char_instance CharInstID ) -> ( - (array:get(BattlemapInstance#battlemap_instance.curr_player) =:= PlayerID) + ( + array:get + ( + BattlemapInstance#battlemap_instance.curr_player, + BattlemapInstance#battlemap_instance.players + ) + =:= + PlayerID + ) and lists:member(CharInstID, BattlemapInstance#battlemap_instance.rem_chars) ). |