From c1dbf4002db138d89f1f320103b6f7ffd6894de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bastos=20Dias?= <80102738+andrebastosdias@users.noreply.github.com> Date: Wed, 27 Dec 2023 20:42:40 +0000 Subject: [PATCH] Fix Roost and Stellar Terastallization interaction (#10021) * Fix Roost and Stellar Terastallization interaction * Fixed to when not full HP * Make the code more readable * Fix --- data/moves.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/data/moves.ts b/data/moves.ts index d43d37386c..dc42314d73 100644 --- a/data/moves.ts +++ b/data/moves.ts @@ -15984,11 +15984,13 @@ export const Moves: {[moveid: string]: MoveData} = { duration: 1, onResidualOrder: 25, onStart(target) { - if (!target.terastallized) { - this.add('-singleturn', target, 'move: Roost'); - } else if (target.terastallized === "Flying") { - this.add('-hint', "If a Flying Terastallized Pokemon uses Roost, it remains Flying-type."); + if (target.terastallized) { + if (target.hasType('Flying')) { + this.add('-hint', "If a Terastallized Pokemon uses Roost, it remains Flying-type."); + } + return false; } + this.add('-singleturn', target, 'move: Roost'); }, onTypePriority: -1, onType(types, pokemon) {