Commit 31d3191b authored by wildfirecode's avatar wildfirecode

1

parent 3e5b465a
...@@ -1798,7 +1798,8 @@ export default class MainScene extends Scene { ...@@ -1798,7 +1798,8 @@ export default class MainScene extends Scene {
} }
//其中一个是魔力鸟 //其中一个是魔力鸟
if (s.effectType == EffectType.MAGICLION || o.effectType == EffectType.MAGICLION) { if (s.effectType == EffectType.MAGICLION || o.effectType == EffectType.MAGICLION) {
if (s.type == ElementType.LOLLIPOP || o.type == ElementType.LOLLIPOP) { if (s.type == ElementType.LOLLIPOP || o.type == ElementType.LOLLIPOP
|| s.monster || o.monster) {
return false return false
} else { } else {
this.isManual = true; this.isManual = true;
......
...@@ -73,7 +73,10 @@ function judgeActionIndex(index: number, lattices: Lattice[]): number { ...@@ -73,7 +73,10 @@ function judgeActionIndex(index: number, lattices: Lattice[]): number {
var rand = Math.floor(Math.random() * arr.length);//随机4个方向 var rand = Math.floor(Math.random() * arr.length);//随机4个方向
var i = arr.splice(rand, 1)[0]; var i = arr.splice(rand, 1)[0];
if (Tool.judgeBaseEle(lattices[i]) && if (Tool.judgeBaseEle(lattices[i]) &&
!lattices[i].element.hasAnyState() && !lattices[i].element.candy) { !lattices[i].element.hasAnyState()
&& !lattices[i].element.candy
&& !lattices[i].element.monster
) {
return i return i
} }
} }
......
...@@ -465,6 +465,7 @@ export class Tool { ...@@ -465,6 +465,7 @@ export class Tool {
ele.hasState(StateType.LOCK) || ele.hasState(StateType.LOCK) ||
ele.hasState(StateType.HAIRBALLGREY) || ele.hasState(StateType.HAIRBALLGREY) ||
ele.hasState(StateType.BLOCK_LOCK) || ele.hasState(StateType.BLOCK_LOCK) ||
ele.monster ||
ele.hasState(StateType.HAIRBALLBLACK) || ele.hasState(StateType.HAIRBALLBLACK) ||
ele.hasState(StateType.HAIRBALLBROWN) ele.hasState(StateType.HAIRBALLBROWN)
) { ) {
......
...@@ -319,6 +319,7 @@ export class AiControl { ...@@ -319,6 +319,7 @@ export class AiControl {
//是基础元素,但是不能有任何状态,去掉鸡 //是基础元素,但是不能有任何状态,去掉鸡
if (Tool.judgeBaseEle(lat) && if (Tool.judgeBaseEle(lat) &&
!lat.element.hasAnyState() && !lat.element.hasAnyState() &&
!lat.element.monster &&
lat.element.type !== ElementType.CHICKEN lat.element.type !== ElementType.CHICKEN
) { ) {
chickenIndexs.push(a); chickenIndexs.push(a);
...@@ -736,7 +737,10 @@ function judgeActionIndex(index: number, lattices: Lattice[]): number { ...@@ -736,7 +737,10 @@ function judgeActionIndex(index: number, lattices: Lattice[]): number {
var rand = Math.floor(Math.random() * arr.length); var rand = Math.floor(Math.random() * arr.length);
var i = arr.splice(rand, 1)[0]; var i = arr.splice(rand, 1)[0];
if (Tool.judgeBaseEle(lattices[i]) && if (Tool.judgeBaseEle(lattices[i]) &&
!lattices[i].element.hasAnyState() && !lattices[i].element.candy) { !lattices[i].element.hasAnyState() &&
!lattices[i].element.candy &&
!lattices[i].element.monster
) {
return i return i
} }
} }
......
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