From 9b413b8b5367893defd7f0214bcfabb2ce17fa30 Mon Sep 17 00:00:00 2001 From: OfficialCHenry Date: Mon, 9 May 2022 14:29:50 -0400 Subject: [PATCH] modified boss teleport pause, removed snake bite from boss --- src/shattered_sword/AI/EnemyStates/BossAttack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shattered_sword/AI/EnemyStates/BossAttack.ts b/src/shattered_sword/AI/EnemyStates/BossAttack.ts index 7e6e16d..6416f4a 100644 --- a/src/shattered_sword/AI/EnemyStates/BossAttack.ts +++ b/src/shattered_sword/AI/EnemyStates/BossAttack.ts @@ -19,7 +19,7 @@ export default class BossAttack extends Attack { super.onEnter(options); this.pauseTimer = new Timer(1000); this.pauseTimer.start(); - this.atknum = Math.floor(Math.random() * 5); + this.atknum = Math.floor(Math.random() * 4); this.owner.alpha = 1; //unstealth to attack switch( this.atknum){ @@ -31,7 +31,7 @@ export default class BossAttack extends Attack { case 1: //assassin atk console.log("assassin atk"); this.runTimer = new Timer(500); - this.pauseTimer = new Timer(1500); + this.pauseTimer = new Timer(100); this.startPosition = this.owner.position; if(this.parent.getPlayerPosition() !==null) this.owner.position = this.parent.getPlayerPosition().clone().add(new Vec2( (this.parent.player).invertX ? 64 : -64 ,-128));