Bläddra i källkod

another fix for #1564 and fixed a rare crash that was introduced a year ago by 9053b1335a

(cherry picked from commit 09a9c70811)
tags/v0.8.0.2
Shaun 3 år sedan
committed by Big Bad Waffle
förälder
incheckning
5111c0affa
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. +1
    -1
      src/server/config/spells/spellTemplate.js
  2. +1
    -1
      src/server/events/events.js

+ 1
- 1
src/server/config/spells/spellTemplate.js Visa fil

@@ -64,7 +64,7 @@ module.exports = {
updateBase: function () {
if (this.castTime > 0) {
let action = this.currentAction;
if (_.getDeepProperty(action, 'target.destroyed') || !this.canCast(action.target)) {
if (_.getDeepProperty(action, 'target.destroyed') || (action && !this.canCast(action.target))) {
this.currentAction = null;
this.castTime = 0;
this.obj.syncer.set(false, null, 'casting', 0);


+ 1
- 1
src/server/events/events.js Visa fil

@@ -254,7 +254,7 @@ module.exports = {
stopAll: function () {
this.configs.forEach(c => {
if (c.event)
this.stopEvent(c);
c.event.done = true;
});
},



Laddar…
Avbryt
Spara