Skip to content
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

[#3763] Select spellcasting ability based on spell's associated class #3764

Merged
merged 4 commits into from
Jul 18, 2024

Conversation

arbron
Copy link
Collaborator

@arbron arbron commented Jun 27, 2024

Modifies _typeAbilityMod property on SpellData to first check the associated spellcasting class if specified on the spell before falling back to the global spellcasting ability.

Also made a change to Item5e#getSaveDC to first ask the item for its ability to use for the DC before falling back to the global spell DC.

Closes #3763

Modifies `_typeAbilityMod` property on `SpellData` to first check
the associated spellcasting class if specified on the spell before
falling back to the global spellcasting ability.

Also made a change to `Item5e#getSaveDC` to first ask the item for
its ability to use for the DC before falling back to the global
spell DC.
@arbron arbron added this to the D&D5E 3.3.0 milestone Jun 27, 2024
@arbron arbron requested a review from Fyorl June 27, 2024 17:34
@arbron arbron self-assigned this Jun 27, 2024
module/data/item/spell.mjs Outdated Show resolved Hide resolved
module/data/item/spell.mjs Show resolved Hide resolved
@arbron arbron requested a review from Fyorl July 18, 2024 15:38
module/documents/actor/actor.mjs Outdated Show resolved Hide resolved
@arbron arbron requested a review from Fyorl July 18, 2024 16:35
@arbron arbron merged commit 3b7089d into 3.3.x Jul 18, 2024
@arbron arbron deleted the spell-class-ability branch July 18, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically select spellcasting ability based on class set on spell
3 participants