Skip to content

Commit

Permalink
Compare executions instead of skill ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ncontinanza committed Jun 12, 2024
1 parent 1b4e2c3 commit beab235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/champions/lib/champions/battle/simulator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ defmodule Champions.Battle.Simulator do
# If the execution is over, we remove it from the target
new_target =
update_in(target, [:executions_over_time], fn current_executions ->
Enum.filter(current_executions, fn exec -> exec.skill_id != execution_over_time.skill_id end)
Enum.filter(current_executions, fn exec -> exec != execution_over_time end)
end)

{new_target, history}
Expand Down

0 comments on commit beab235

Please sign in to comment.