Ensured disabled effects don't show up in skill and attribute detail boxes

This commit is contained in:
Stefan Zermatten
2015-05-13 08:46:28 +02:00
parent a71519aaa7
commit 2122e543d5
2 changed files with 12 additions and 5 deletions

View File

@@ -106,27 +106,27 @@ Template.attributeDialogView.helpers({
},
baseEffects: function(){
return Effects.find(
{charId: this.charId, stat: this.statName, operation: "base"}
{charId: this.charId, stat: this.statName, operation: "base", enabled: true}
);
},
addEffects: function(){
return Effects.find(
{charId: this.charId, stat: this.statName, operation: "add"}
{charId: this.charId, stat: this.statName, operation: "add", enabled: true}
);
},
mulEffects: function(){
return Effects.find(
{charId: this.charId, stat: this.statName, operation: "mul"}
{charId: this.charId, stat: this.statName, operation: "mul", enabled: true}
);
},
minEffects: function(){
return Effects.find(
{charId: this.charId, stat: this.statName, operation: "min"}
{charId: this.charId, stat: this.statName, operation: "min", enabled: true}
);
},
maxEffects: function(){
return Effects.find(
{charId: this.charId, stat: this.statName, operation: "max"}
{charId: this.charId, stat: this.statName, operation: "max", enabled: true}
);
},
attributeBase: function(){