don't replace level with caster level for PCs

This commit is contained in:
Mark
2016-03-12 10:46:14 +01:00
parent 1075840e62
commit ef2732cbc4
2 changed files with 2 additions and 2 deletions
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}');
}