Skip to content

Commit

Permalink
fix: added faceHex method in fnOnConfirm to fix Uncle Fungus turning …
Browse files Browse the repository at this point in the history
…forward for a split second
  • Loading branch information
zaryanz committed May 28, 2024
1 parent 04d9796 commit 932955d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abilities/Uncle-Fungus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ export default (G: Game) => {
},
fnOnConfirm: (...args) => {
const chosenHex = args[0];

if (chosenHex.x == this.creature.x && chosenHex.y == this.creature.y) {
// Prevent null movement
this.query();
return;
}
this.animation(...args);
chosenHex.game.activeCreature.faceHex(chosenHex);
G.grid.fadeOutTempCreature();
},
size: uncle.size,
Expand Down

0 comments on commit 932955d

Please sign in to comment.