We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d78d37 + 3332020 commit 7169d20Copy full SHA for 7169d20
pf2e/spell_attack.js
@@ -0,0 +1,13 @@
1
+//Spell Attack: This rolls the spell attack for any "Spontaneous Primal Spells".
2
+ //Replace the name with whatever the name of your Spellcasting Entry is in your spellbook to roll that spell attack.
3
+
4
+let name = 'Spontaneous Primal Spells';
5
6
+let modifier = (actor.data.items).find(item => item.name
7
+ == name).data.spelldc.value;
8
9
+const roll = new Roll('1d20+' + modifier);
10
11
+roll.roll();
12
13
+roll.toMessage({ flavor: "Spell Attack", speaker: ChatMessage.getSpeaker({actor: actor})});
0 commit comments