Browse Source

bug: Fixed noEvents

tags/v0.12.0
Shaun 1 year ago
parent
commit
54a4471c10
16 changed files with 35 additions and 20 deletions
  1. +2
    -3
      src/server/config/itemEffects/damageSelf.js
  2. +2
    -1
      src/server/config/spells/spellAmbush.js
  3. +2
    -1
      src/server/config/spells/spellChainLightning.js
  4. +2
    -1
      src/server/config/spells/spellCharge.js
  5. +2
    -1
      src/server/config/spells/spellFireblast.js
  6. +2
    -1
      src/server/config/spells/spellIceSpear.js
  7. +2
    -1
      src/server/config/spells/spellMelee.js
  8. +2
    -1
      src/server/config/spells/spellProjectile.js
  9. +2
    -2
      src/server/config/spells/spellSingleTargetHeal.js
  10. +2
    -1
      src/server/config/spells/spellSlash.js
  11. +2
    -1
      src/server/config/spells/spellSlowBlast.js
  12. +2
    -1
      src/server/config/spells/spellSmite.js
  13. +4
    -2
      src/server/config/spells/spellSmokeBomb.js
  14. +3
    -1
      src/server/config/spells/spellTrailDash.js
  15. +2
    -1
      src/server/config/spells/spellWarnBlast.js
  16. +2
    -1
      src/server/mods/class-necromancer/spells/spellHarvestLife.js

+ 2
- 3
src/server/config/itemEffects/damageSelf.js View File

@@ -29,14 +29,13 @@ module.exports = {
noCrit: true
});

newDamage.noEvents = true;

this.stats.takeDamage({
damage: newDamage,
threatMult: 1,
source: this,
target: this,
effectName: 'damageSelf'
effectName: 'damageSelf',
noEvents: true
});
}
}


+ 2
- 1
src/server/config/spells/spellAmbush.js View File

@@ -188,7 +188,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'ambush'
spellName: 'ambush',
noEvents: this.noEvents
});
},



+ 2
- 1
src/server/config/spells/spellChainLightning.js View File

@@ -36,7 +36,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'chainLightning'
spellName: 'chainLightning',
noEvents: this.noEvents
});
}
};

+ 2
- 1
src/server/config/spells/spellCharge.js View File

@@ -131,7 +131,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'charge'
spellName: 'charge',
noEvents: this.noEvents
});

this.obj.fireEvent('afterPositionChange', moveEvent);


+ 2
- 1
src/server/config/spells/spellFireblast.js View File

@@ -110,7 +110,8 @@ module.exports = {
threatMult: 1,
source: this.obj,
target: m,
spellName: 'fireblast'
spellName: 'fireblast',
noEvents: this.noEvents
});

if (m.destroyed)


+ 2
- 1
src/server/config/spells/spellIceSpear.js View File

@@ -65,7 +65,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'iceSpear'
spellName: 'iceSpear',
noEvents: this.noEvents
});
}
};

+ 2
- 1
src/server/config/spells/spellMelee.js View File

@@ -48,7 +48,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'melee'
spellName: 'melee',
noEvents: this.noEvents
});
}
};

+ 2
- 1
src/server/config/spells/spellProjectile.js View File

@@ -143,7 +143,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'projectile'
spellName: 'projectile',
noEvents: this.noEvents
});
}
};

+ 2
- 2
src/server/config/spells/spellSingleTargetHeal.js View File

@@ -18,14 +18,14 @@ module.exports = {
const { x, y } = target;

const heal = this.getDamage(target, true);
heal.noEvents = this.noEvents;

const event = {
heal,
source: this.obj,
target,
spellName: 'singleTargetHeal',
spell: this
spell: this,
noEvents: this.noEvents
};

target.stats.getHp(event);


+ 2
- 1
src/server/config/spells/spellSlash.js View File

@@ -48,7 +48,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'slash'
spellName: 'slash',
noEvents: this.noEvents
});
}
};

+ 2
- 1
src/server/config/spells/spellSlowBlast.js View File

@@ -94,7 +94,8 @@ module.exports = {
threatMult: 1,
source: obj,
target: m,
spellName: 'slowBlast'
spellName: 'slowBlast',
noEvents: this.noEvents
});
}
}


+ 2
- 1
src/server/config/spells/spellSmite.js View File

@@ -47,7 +47,8 @@ module.exports = {
threatMult: this.threatMult,
source: this.obj,
target,
spellName: 'smite'
spellName: 'smite',
noEvents: this.noEvents
});

target.effects.addEffect({


+ 4
- 2
src/server/config/spells/spellSmokeBomb.js View File

@@ -10,7 +10,8 @@ let cpnSmokePatch = {
threatMult: 1,
source: this.caster,
target: target,
spellName: 'smokeBomb'
spellName: 'smokeBomb',
noEvents: this.noEvents
});
},

@@ -177,7 +178,8 @@ module.exports = {
caster: obj,
statType: this.statType,
getDamage: this.getDamage.bind(this),
ttl: this.duration
ttl: this.duration,
noEvents: this.noEvents
}
}
}]);


+ 3
- 1
src/server/config/spells/spellTrailDash.js View File

@@ -9,7 +9,8 @@ let cpnSpikePatch = {
threatMult: 1,
source: this.caster,
target: target,
spellName: 'smokeBomb'
spellName: 'smokeBomb',
noEvents: this.noEvents
});
},

@@ -122,6 +123,7 @@ module.exports = {
}]);
spike.spikePatch.caster = this.obj;
spike.spikePatch.damage = this.damage;
spike.spikePatch.noEvents = this.noEvents;

this.queueCallback(null, this.spikeDuration * consts.tickTime, this.endEffect.bind(this, spike), null, true);



+ 2
- 1
src/server/config/spells/spellWarnBlast.js View File

@@ -129,7 +129,8 @@ module.exports = {
threatMult: 1,
source: obj,
target: m,
spellName: 'warnBlast'
spellName: 'warnBlast',
noEvents: this.noEvents
});
}
}


+ 2
- 1
src/server/mods/class-necromancer/spells/spellHarvestLife.js View File

@@ -49,7 +49,8 @@ module.exports = {
threatMult: this.threatMult,
source: obj,
target,
spellName: 'harvestLife'
spellName: 'harvestLife',
noEvents: this.noEvents
});

let healAmount = damage.amount * (this.healPercent / 100);


Loading…
Cancel
Save