Skip to content

Commit

Permalink
Merge pull request #768 from dolio/topic/strict-coup
Browse files Browse the repository at this point in the history
Guard coup de grace save under strict rules
  • Loading branch information
doug1234 authored Mar 2, 2024
2 parents f0dccc3 + 0d6958a commit 7294edc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TemplePlus/d20.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2680,8 +2680,9 @@ BOOL D20ActionCallbacks::ActionFrameCoupDeGrace(D20Actn* d20a) {
return 0;

auto dc = 10 + dmg;
bool strict = config.stricterRulesEnforcement;

if (damage.SavingThrow(target, performer, dc, SavingThrowType::Fortitude, D20STF_NONE))
if (strict && damage.SavingThrow(target, performer, dc, SavingThrowType::Fortitude, D20STF_NONE))
return 0;

auto leader = party.GetConsciousPartyLeader();
Expand Down

0 comments on commit 7294edc

Please sign in to comment.