Spell attack bonus and DC are now available in spell attacks.

This commit is contained in:
Jacob
2017-07-19 12:13:49 +01:00
parent 24cc4fd2b1
commit 0e53f157d2
6 changed files with 107 additions and 37 deletions

View File

@@ -49,6 +49,12 @@ evaluate = function(charId, string, opts){
if (list && list.saveDC){
return evaluate(charId, list.saveDC);
}
}
if (spellListId && sub.toUpperCase() === "ATTACKBONUS") {
var list = SpellLists.findOne(spellListId);
if (list && list.attackBonus){
return evaluate(charId, list.attackBonus);
}
}
return sub;
});