summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/battle/src/View/Map/Character.elm')
-rw-r--r-- | src/battle/src/View/Map/Character.elm | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/battle/src/View/Map/Character.elm b/src/battle/src/View/Map/Character.elm index 4b69ebc..b20c29a 100644 --- a/src/battle/src/View/Map/Character.elm +++ b/src/battle/src/View/Map/Character.elm @@ -16,6 +16,7 @@ import BattleCharacters.Struct.Equipment -- Local Module ---------------------------------------------------------------- import Constants.UI +import Struct.Battle import Struct.Character import Struct.CharacterTurn import Struct.Event @@ -80,11 +81,14 @@ get_alliance_class : ( (Html.Attribute Struct.Event.Type) ) get_alliance_class model char = - if ((Struct.Character.get_player_index char) == model.player_ix) - then - (Html.Attributes.class "character-ally") - else - (Html.Attributes.class "character-enemy") + if + ( + (Struct.Character.get_player_index char) + == + (Struct.Battle.get_own_player_index model.battle) + ) + then (Html.Attributes.class "character-ally") + else (Html.Attributes.class "character-enemy") get_position_style : ( Struct.Character.Type -> |