Browse Source

Merge branch 'dev' of http://47.96.66.225:10080/chelios/xsdmx-CocosCreator into dev

licong 3 years ago
parent
commit
51968508cb
1 changed files with 7 additions and 2 deletions
  1. 7 2
      assets/Script/game/fight/object/AI/AIPet.ts

+ 7 - 2
assets/Script/game/fight/object/AI/AIPet.ts

@@ -20,12 +20,17 @@ export default class AIPet extends AIBase {
 
     onLoad() {
         super.onLoad();
-        this.speed = 100;
+        this.speed = 300;
         this.sprite.SPEED_WALK = this.speed;
         this.addSkill()
     }
     public addSkill() {
         let skillFixed: SkillFixed = this.node.addComponent(SkillFixed)
+        skillFixed.count = 1;
+        skillFixed.time = 0;
+        skillFixed.btime = 1;
+        skillFixed.CD = 800;
+
         cc.resources.load('prefab/bullet/' + this.sprite.attrData.bullet, cc.Prefab, (err, prefab: cc.Prefab) => {
             if (err) {
                 cc.error(err);
@@ -78,7 +83,7 @@ export default class AIPet extends AIBase {
                         }
                     }
                 } else {
-                    this.walk(300);
+                    // this.walk(300);
                 }
             }
         } else {