Repository navigation
pf2e 0.12.0: Blessed's Guidance, Quick Draw, one roll for area Heal #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # The Blessed background's text gives Guidance as a divine innate spell at will, which Foundry's rules leave out. | ||
| # The innate spell hangs off the background, so picking another background takes it away. | ||
| install: [pf2e] | ||
| feed: [ancestries/Human, heritages/Skilled Human, backgrounds/Blessed, backgrounds/Acolyte, spells/Guidance] | ||
| players: | ||
| saint: { room: shrine } | ||
| steps: | ||
| - as: saint | ||
| run: +build/ancestry Human | ||
| - as: saint | ||
| run: +build/heritage Skilled Human | ||
| - as: saint | ||
| run: +build/background Blessed | ||
| sees: ["Background: Blessed.", "Innate spell: Guidance (at will), from Blessed."] | ||
| - as: saint | ||
| run: +build/background Blessed | ||
| sees: "Innate spell: Guidance (at will), from Blessed." | ||
| because: picking it again replaces the old pick and what it brought | ||
| - as: saint | ||
| run: +build/innate Guidance | ||
| sees: "The sheet has Guidance as an innate spell already." | ||
| because: the background put Guidance on the sheet | ||
| - as: saint | ||
| run: +build/background Acolyte | ||
| sees: "Background: Acolyte." | ||
| not_sees: Innate spell | ||
| - as: saint | ||
| run: +build/innate Guidance | ||
| sees: "Innate spell: Guidance (at will)." | ||
| because: Acolyte brings no innate spell, and Blessed's Guidance went with it | ||
| - as: saint | ||
| run: +build/background Blessed | ||
| sees: "The sheet has Guidance as an innate spell already." | ||
| not_sees: "from Blessed" | ||
| because: Guidance added by hand is not added twice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Three-action Heal heals the living and harms a dhampir with one roll: the damage is the healing roll, not a | ||
| # second roll. | ||
| install: [pf2e] | ||
| feed: [ancestries/Human, heritages/Dhampir, heritages/Skilled Human, classes/Cleric, class-features/Cloistered Cleric, classes/Fighter, spells/Heal, feats/Domain Initiate] | ||
| players: | ||
| cleric: { room: chapel } | ||
| dhamp: { room: chapel } | ||
| livia: { room: chapel } | ||
| steps: | ||
| - god: "@tel me=${cleric}" | ||
| - god: +deity/samples | ||
| - as: cleric | ||
| run: +build/ancestry Human | ||
| - as: cleric | ||
| run: +build/heritage Skilled Human | ||
| - as: cleric | ||
| run: +build/class Cleric | ||
| - as: cleric | ||
| run: +build/choose Deity=Solenne | ||
| - as: cleric | ||
| run: +build/choose Divine Font=Heal | ||
| - as: cleric | ||
| run: +build/choose Doctrine=Cloistered Cleric | ||
| - as: dhamp | ||
| run: +build/ancestry Human | ||
| - as: dhamp | ||
| run: +build/heritage Dhampir | ||
| - as: dhamp | ||
| run: +build/class Fighter | ||
| - as: livia | ||
| run: +build/ancestry Human | ||
| - as: livia | ||
| run: +build/heritage Skilled Human | ||
| - as: livia | ||
| run: +build/class Fighter | ||
| - god: +enc/start | ||
| - god: +enc/add ${cleric.name} | ||
| - god: +enc/init | ||
| - god: +enc/next | ||
| - god: +enc/add ${dhamp.name} | ||
| - god: +enc/add ${livia.name} | ||
| - god: +enc/damage ${livia.name}=5 slashing | ||
| - as: cleric | ||
| run: +cast Heal with 3 actions=${livia.name},${dhamp.name} | ||
| sees: ["Healing 1d8[", "${livia.name} regains", "${dhamp.name}: 1d20["] | ||
| not_sees: "Damage 1d8[" | ||
| because: the healing roll is the damage too, so the damage is not rolled apart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # A Strike with a weapon the sheet carries but does not hold draws it first, one more action; after that it is | ||
| # in hand for the encounter. With Quick Draw the draw costs nothing. | ||
| install: [pf2e] | ||
| feed: [ancestries/Human, heritages/Skilled Human, classes/Fighter, equipment/Dagger, feats/Quick Draw] | ||
| players: | ||
| blade: { room: yard } | ||
| post: { room: yard } | ||
| steps: | ||
| - god: "@tel me=${blade}" | ||
| - as: blade | ||
| run: +build/ancestry Human | ||
| - as: blade | ||
| run: +build/heritage Skilled Human | ||
| - as: blade | ||
| run: +build/class Fighter | ||
| - as: blade | ||
| run: +build/buy Dagger | ||
| - as: post | ||
| run: +build/ancestry Human | ||
| - as: post | ||
| run: +build/heritage Skilled Human | ||
| - as: post | ||
| run: +build/class Fighter | ||
| - god: +enc/start | ||
| - god: +enc/add ${blade.name} | ||
| - god: +enc/init | ||
| - god: +enc/next | ||
| - god: +enc/add ${post.name} | ||
| - as: blade | ||
| run: +enc/strike ${post.name}=Dagger | ||
| sees: "${blade.name} draws Dagger. ${blade.name} Strikes ${post.name} with Dagger" | ||
| - eval: "[u(${object:pf2e/table}/FUN`ENC`LOAD,loc(me))][u(${object:pf2e/table}/FUN`ENC`C,0,acts)]" | ||
| is: "2" | ||
| because: the draw is an action of its own | ||
| - as: blade | ||
| run: +enc/strike ${post.name}=Dagger | ||
| sees: "${blade.name} Strikes ${post.name} with Dagger" | ||
| not_sees: draws | ||
| - eval: "[u(${object:pf2e/table}/FUN`ENC`LOAD,loc(me))][u(${object:pf2e/table}/FUN`ENC`C,0,acts)]" | ||
| is: "3" | ||
| because: the dagger stays drawn | ||
| - god: +enc/next | ||
| - as: blade | ||
| run: +enc/react ${post.name}=Dagger | ||
| sees: "${blade.name} Strikes ${post.name} with Dagger as a reaction" | ||
| because: the dagger drawn on the fighter's turn is in hand for a Reactive Strike | ||
| - eval: "[u(${object:pf2e/table}/FUN`ENC`LOAD,loc(me))][setq(act_at,1,act_strike,Dagger|0|||5|~|||||[json(object,id,\"DAGGER\",where,\"carried\")],check_options,feat:quick-draw)][u(${object:pf2e/table}/FUN`ACT`STRIKE`DRAW)]-%q<strike_drawsay>" | ||
| sees: "0-${post.name} draws Dagger with Quick Draw." | ||
| because: Quick Draw draws the weapon as part of the Strike | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exercise Quick Draw through an encounter Strike.
This check injects
feat:quick-drawand callsFUNACTSTRIKEDRAWdirectly. It still passes if a character's Quick Draw feat never reachescheck_options`, or if the Strike caller charges the wrong action cost.Add a character with Quick Draw through the supported build path. Issue
+enc/strikewith an undrawn carried weapon. Assert the Quick Draw narration and one spent action. Regenerate the test file afterward.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not changed. Quick Draw is a level 2 rogue/ranger/gunslinger feat, and reaching level 2 in a scenario means finishing a sheet and levelling up. That would make this test much longer than the rule it checks. The in-encounter path (cost added to the Strike's spend, narration) is covered by the plain draw steps. The eval covers the Quick Draw branch, reading
check_optionsthe way every other feat check in the package does.Generated by Claude Code