diff options
Diffstat (limited to 'src/2015/day22/aoc.cpp')
-rw-r--r-- | src/2015/day22/aoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2015/day22/aoc.cpp b/src/2015/day22/aoc.cpp index bfc2a48..683d6bd 100644 --- a/src/2015/day22/aoc.cpp +++ b/src/2015/day22/aoc.cpp @@ -97,7 +97,7 @@ void fight(int turn, wizard me, wizard boss, int cost, std::vector<int>& costs) costs.push_back(cost); } else { - me.points -= bosskill.damage; + me.points -= bosskill.damage - me.armor; fight(turn+1, me, boss, cost, costs); } } |