diff --git a/out/main.js b/out/main.js index ea944b5f8364ddbcaea941388a73b898bca1a40d..ab1a5145b737e5baa38efeaa437b2c9375830edb 100644 --- a/out/main.js +++ b/out/main.js @@ -8146,7 +8146,14 @@ var $author$project$Main$update = F2( _Utils_update( model, { + activeTooltip: '', + characterList: $author$project$Main$generateIconIdents( + A2( + $elm$core$List$filter, + $author$project$Main$isNotId(index + 1), + model.characterList)), enemy: A2($elm_community$array_extra$Array$Extra$removeAt, index, model.enemy), + highlightedTableRow: 0, showAttackModal: $rundis$elm_bootstrap$Bootstrap$Modal$hidden, showDeathAlert: $rundis$elm_bootstrap$Bootstrap$Modal$shown }), diff --git a/src/Main.elm b/src/Main.elm index 73cd184f4b7c934f02734c1db1f97c07e45b0b61..1527515d368ca37b9e53cca81aa3719f65298140 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -76,12 +76,13 @@ update msg model = ) CharacterDeath index -> - ( - { model | showDeathAlert = Modal.shown - , enemy = Array.removeAt index model.enemy - , showAttackModal = Modal.hidden - } - , Cmd.none + ( { model | showDeathAlert = Modal.shown + , enemy = Array.removeAt index model.enemy + , showAttackModal = Modal.hidden + , characterList = generateIconIdents (List.filter (isNotId (index+1)) model.characterList) + , highlightedTableRow = 0 + , activeTooltip = "" } + , Cmd.none ) MyDrop1Msg state ->