Browse Source

Remove todos that are mentioned in MR and remove unused param

tags/v0.10.6^2
kckckc 2 years ago
parent
commit
c1dd39a6dc
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/server/components/effects.js

+ 1
- 4
src/server/components/effects.js View File

@@ -147,8 +147,6 @@ module.exports = {
if (!options.force && !this.canApplyEffect(options.type))
return;

//TODO: new stats that mitigate CC duration

let oldEffect = this.effects.find(e => e.type === options.type);

//If there is no existing effect or the effect is not stackable, make a new effect
@@ -215,7 +213,6 @@ module.exports = {
if (effect.silent)
return;

//TODO: should this be for self?
this.obj.syncer.setArray(true, 'effects', 'extendEffects', {
id,
data
@@ -234,7 +231,7 @@ module.exports = {
this.obj.syncer.setArray(false, 'effects', 'removeEffects', id);
},

removeEffect: function (id, noMsg) {
removeEffect: function (id) {
let effect = this.effects.find(e => e.id === id);
this.destroyEffect(effect);



Loading…
Cancel
Save