richelbilderbeek/city_of_thieves

Luck to prevent damage actually increases it

richelbilderbeek opened this issue · 1 comments

According to Seb and Jesper, when one uses luck to prevent damage (from 2 to 1), it actually increases it from 2 to 3 points.

Indeed!

            if (selected_option.GetConsequence().GetType() == ConsequenceType::yes)
            {
              const bool has_luck{character.TestLuck()};
              damage += ( (damage/2) * (has_luck ? 1 : -1) );
            }