Skip to content

Commit

Permalink
qol(sword-slitter): Added a 1 second delay before the second sword sl…
Browse files Browse the repository at this point in the history
…itter
  • Loading branch information
JoelFernandes09 committed Aug 17, 2023
1 parent 1785ce4 commit efd57f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/abilities/Bounty-Hunter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ export default (G: Game) => {
* make a second attack
*/
if (targetOriginalHealth - target.health >= target.health && this.isUpgraded()) {
target.takeDamage(damage);
// Added a delay for the second attack
setTimeout(() => {
G.Phaser.camera.shake(0.01, 150, true, G.Phaser.camera.SHAKE_HORIZONTAL, true);
target.takeDamage(damage);
}, 1000);
}
},
},
Expand Down

0 comments on commit efd57f1

Please sign in to comment.