Skip to content

Commit

Permalink
qol(sword-slitter): Fixed the cancelled tooltip showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelFernandes09 committed Nov 2, 2023
1 parent fa6fc2e commit 58ca637
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/abilities/Bounty-Hunter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default (G: Game) => {
[], // Effects
G,
);
target.takeDamage(damage);
ability.end();
G.Phaser.camera.shake(0.01, 150, true, G.Phaser.camera.SHAKE_HORIZONTAL, true);
/** damage dealt is original health - current health
* if current health is lower than damage dealt,
Expand All @@ -165,11 +165,11 @@ export default (G: Game) => {
// Added a delay for the second attack with a custom game log
setTimeout(() => {
G.Phaser.camera.shake(0.01, 150, true, G.Phaser.camera.SHAKE_HORIZONTAL, true);
target.takeDamage(damage);
ability.end(true);
target.takeDamage(damage);
G.log('%CreatureName' + ability.creature.id + '% used ' + ability.title + ' twice');
}, 1000);
} else ability.end();
} else target.takeDamage(damage);
},
},

Expand Down

0 comments on commit 58ca637

Please sign in to comment.