Conditions are now separate from buffs, like in #109
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
<div flex class="bottom list">
|
||||
<div class="conditionsList">
|
||||
{{#each condition in conditions}}
|
||||
{{>buffListItem buff=condition}}
|
||||
{{>conditionView condition=condition}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{#if buffs.count}}
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
Template.stats.helpers({
|
||||
conditions: function(){
|
||||
var selector = {
|
||||
"charId": this._id,
|
||||
"type": "inate",
|
||||
};
|
||||
return Buffs.find(selector);
|
||||
conditions: function() {
|
||||
return Conditions.find({charId: this._id});
|
||||
},
|
||||
buffs: function(){
|
||||
buffs: function() {
|
||||
var selector = {
|
||||
"charId": this._id,
|
||||
"type": "custom",
|
||||
};
|
||||
return Buffs.find(selector);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user