Fix errors from previous merge & fixes potency roll

This commit is contained in:
Jose Abelardo Gutierrez
2018-04-17 19:40:33 -05:00
parent fb66531c1f
commit ef692ec62e
@@ -2937,18 +2937,17 @@
on("change:defense_select", function(eventInfo) {
updateDefense(eventInfo);
});
on("sheet:opened", function() {
updateDefaultDefense();
on("change:iron_stamina", function() {
updateWoundPenalties();
});
on("change:potency change:potency_flag", function() {
updateRolls("potency");
});
on("sheet:opened", function() {
updateDefaultDefense();
updatePotencyName();
});
@@ -2970,6 +2969,9 @@
rarray.splice(rarray.indexOf(stat), 1);
}
}
else if (stat === "potency") {
type = "potency";
}
else if (stat != "potency") {
if(attributes.indexOf(stat) > -1) {
type = "attribute";