Преглед изворни кода

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

tags/v0.8.0.6^2
Shaun пре 3 година
родитељ
комит
09a9c70811
2 измењених фајлова са 2 додато и 2 уклоњено
  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 Прегледај датотеку

@@ -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 Прегледај датотеку

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



Loading…
Откажи
Сачувај