From 530d4b16ef17af1b3b6ce410d253335b132fbc8d Mon Sep 17 00:00:00 2001 From: "Hongrui \"Jim\" Yu" <113254490+Luffy117@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:24:28 -0500 Subject: [PATCH] Added a third skill use check for Abolished At the end of the turn check if Abolished has used his third skill, if not and the skill has been upgraded he gains extra movement distance. --- src/game.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/game.ts b/src/game.ts index 8a87ad955..39e74848e 100644 --- a/src/game.ts +++ b/src/game.ts @@ -1260,9 +1260,7 @@ export default class Game { onStartPhase(/* creature, callback */) { const creature = arguments[0], totalTraps = this.traps.length; - if (creature.abilities.some(ability => ability.title === 'Bonfire Spring')) { - creature.accumulatedTeleportRange += 1; - } + let trap: Trap; for (let i = 0; i < totalTraps; i++) { @@ -1295,6 +1293,10 @@ export default class Game { // Removed individual args from definition because we are using the arguments variable. onEndPhase(/* creature, callback */) { const creature = arguments[0]; + // Check if Abolished used third ability + if (creature.abilities.some(ability => ability.title === 'Bonfire Spring')) { + creature.accumulatedTeleportRange += 1; + } this.triggerDeleteEffect('onEndPhase', creature); this.triggerAbility('onEndPhase', arguments);