kidd3166 1 anno fa
parent
commit
53a85474c2

+ 6 - 6
smart-shoes-artillery-fire/assets/Script/Game/Game/View/ArtilleryFireView/ArtilleryFireView.ts

@@ -132,12 +132,12 @@ export default class ArtilleryFireView extends BasicView {
                 if (Math.abs(enemy.enemy.x-this.player.player.x)+Math.abs(enemy.enemy.y-this.player.player.y) <= enemy.enemy.getChild("collide"+(enemy.level+1)).width+this.player.player.width/2) {
                     enemy.isMove = false;
 
-                    // this.killRole();
-                    if(--this.life < 1){
-                        this.killRole();
-                    }else{
-                        enemy.injured(99, false);
-                    }
+                     this.killRole();
+                    // if(--this.life < 1){
+                    //     this.killRole();
+                    // }else{
+                    //     enemy.injured(99, false);
+                    // }
                     break;
                 }
             }