Commit 63b587b2 authored by zjz1994's avatar zjz1994

代码暂存

parent 863ee601
......@@ -3818,8 +3818,6 @@ export default class MainScene extends Scene {
if (!this.lattices[index] || !this.lattices[index].element) return null
//先赋值指向
let ele = this.lattices[index].element;
let eletype = ele.type;
let eleffectype = ele.effectType;
//添加进emptys
this.emptys.push(index)
......@@ -3836,7 +3834,7 @@ export default class MainScene extends Scene {
for(let p=0;p<this.cannoArr.length;p++){
let pcannoidx = this.cannoArr[p].idx;
var isnext = Tool.checkNebByidx(pcannoidx,index);
if(isnext){
if(isnext&&Tool.judgeChosen(ele)){
var pcannoele = this.cannoArr[p].ele;
var lastpcannostatnum:number = pcannoele._cannoStat
pcannoele.addOneCannoStat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment