|
@@ -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;
|
|
|
}
|
|
|
}
|