Files
DiceCloud/rpg-docs/client/views/character/effects/effectsViewList/effectsViewList.js
2015-03-20 09:12:38 +00:00

11 lines
293 B
JavaScript

Template.effectsViewList.helpers({
effects: function(){
if(this.parentId){
return Effects.find({"parent.id": this.parentId, type: this.type, charId: this.charId}, {fields: {parent: 0}});
} else if(this.stat){
return Effects.find({charId: this.charId, stat: this.stat});
}
}
});