From eb71f9b4cf33d99be42e492b6bdbe9277fa659ae Mon Sep 17 00:00:00 2001 From: Victreegal4 <168313227+Victreegal4@users.noreply.github.com> Date: Sat, 27 Apr 2024 20:47:32 -0700 Subject: [PATCH] Fixed Revelation Dance Implementation Attack now matches user's first type. --- src/data/move.ts | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 25252cbb475..b219174eeba 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2183,28 +2183,9 @@ export class AuraWheelTypeAttr extends VariableMoveTypeAttr { export class RevelationDanceTypeAttr extends VariableMoveTypeAttr { apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { - if ([user.species.speciesId, user.fusionSpecies?.speciesId].includes(Species.ORICORIO)) { - const form = user.species.speciesId === Species.ORICORIO ? user.formIndex : user.fusionSpecies.formIndex; - const type = (args[0] as Utils.IntegerHolder); - - switch (form) { - case 1: // Baille Style - type.value = Type.FIRE; - break; - case 2: // Pom Pom Style - type.value = Type.ELECTRIC; - break; - case 2: // Pa'u Style - type.value = Type.PSYCHIC; - break; - default: // Sensu Style - type.value = Type.GHOST; - break; - } - return true; - } - - return false; + const type = (args[0] as Utils.IntegerHolder); + type.value = user.getTypes(true, false)[0]; + return true; } }