Can now set target of buffs

...to "Self only", "Others only", or "Both".
This commit is contained in:
Jacob
2017-08-09 16:08:19 +01:00
parent c9fe2f17a0
commit 18e5ab3f21
3 changed files with 22 additions and 1 deletions

View File

@@ -32,4 +32,10 @@ Template.customBuffEdit.events({
trimStrings: false,
});
}),
"iron-select .target-dropdown": function(event){
var detail = event.originalEvent.detail;
var value = detail.item.getAttribute("name");
if (value === this.target) return;
CustomBuffs.update(this._id, {$set: {target: value}});
},
});