Files
DiceCloud/rpg-docs/client/views/character/stats/buffViewList/buffViewList.js
2017-07-15 19:54:23 +01:00

13 lines
248 B
JavaScript

Template.buffViewList.helpers({
buffs: function(){
var selector = {
"parent.id": this.parentId,
"charId": this.charId,
};
if (this.parentGroup){
selector["parent.group"] = this.parentGroup;
}
return Buffs.find(selector);
}
});