mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Fixed Revelation Dance Implementation
Attack now matches user's first type.
This commit is contained in:
parent
549b61ecfd
commit
eb71f9b4cf
@ -2183,29 +2183,10 @@ export class AuraWheelTypeAttr extends VariableMoveTypeAttr {
|
|||||||
|
|
||||||
export class RevelationDanceTypeAttr extends VariableMoveTypeAttr {
|
export class RevelationDanceTypeAttr extends VariableMoveTypeAttr {
|
||||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
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);
|
const type = (args[0] as Utils.IntegerHolder);
|
||||||
|
type.value = user.getTypes(true, false)[0];
|
||||||
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 true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RagingBullTypeAttr extends VariableMoveTypeAttr {
|
export class RagingBullTypeAttr extends VariableMoveTypeAttr {
|
||||||
|
Loading…
Reference in New Issue
Block a user