diff options
author | kaiwu <kaiwu2004@gmail.com> | 2022-12-08 14:21:44 +0800 |
---|---|---|
committer | kaiwu <kaiwu2004@gmail.com> | 2022-12-08 14:21:44 +0800 |
commit | c3a3e3fe4f98931a1de9ea198119a1f0bf71a320 (patch) | |
tree | f24ef2565476ba2818786fcfed045c169af3c314 /src/2015/day22/aoc.cpp | |
parent | 33c75ac0c078bd50b560ea2f0361d8230585568f (diff) | |
download | advent-of-code-c3a3e3fe4f98931a1de9ea198119a1f0bf71a320.tar.gz advent-of-code-c3a3e3fe4f98931a1de9ea198119a1f0bf71a320.zip |
2022 day8
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); } } |