浏览代码

bug: Fixed lighting efects crashing in some cases

tags/v0.12.0.9^2
Shaun 1年前
父节点
当前提交
3227f3a91a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      src/server/clientComponents/lightningEffect.js

+ 6
- 0
src/server/clientComponents/lightningEffect.js 查看文件

@@ -25,6 +25,12 @@ define([
init: function () {
effects.register(this);

if (this.toX === undefined && this.target === undefined) {
this.destroyed = true;

return;
}

let { toX = this.target.x, toY = this.target.y } = this;

const fromX = this.obj.x + ((toX >= this.obj.x) ? 1 : 0);


正在加载...
取消
保存