Skip to content

Commit

Permalink
Using luck to prevent damage actually does so, fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Oct 4, 2022
1 parent f2a7551 commit 759b506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/fightingchapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void FightingChapter::DoFightTwoMonsters(std::vector<Monster> monsters,Character
if (selected_option.GetConsequence().GetType() == ConsequenceType::yes)
{
const bool has_luck{character.TestLuck()};
damage += ( (damage/2) * (has_luck ? 1 : -1) );
damage -= ( (damage/2) * (has_luck ? 1 : -1) );
}
character.ChangeCondition(-damage);
m_chapter.ShowText(
Expand Down

0 comments on commit 759b506

Please sign in to comment.