mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-10 00:52:28 +00:00
don't replace level with caster level for PCs
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1988,7 +1988,7 @@ const updateSpell = (rowId) => {
|
||||
};
|
||||
updateDamageToggle(v, finalSetAttrs, repeatingString, damageOptions);
|
||||
|
||||
if (v.is_npc && v.caster_level && v[`${repeatingString}damage`] && v[`${repeatingString}damage`].indexOf('@{level}') !== -1) {
|
||||
if (getIntValue(v.is_npc) === 1 && v.caster_level && v[`${repeatingString}damage`] && v[`${repeatingString}damage`].indexOf('@{level}') !== -1) {
|
||||
finalSetAttrs[`${repeatingString}damage`] = v[`${repeatingString}damage`].replace('@{level}', '@{caster_level}');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user