mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Implemented Revelation Dance
First commit; please let me know if there are issues.
This commit is contained in:
parent
854de76467
commit
549b61ecfd
@ -2181,6 +2181,33 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
export class RagingBullTypeAttr extends VariableMoveTypeAttr {
|
||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||
if ([user.species.speciesId, user.fusionSpecies?.speciesId].includes(Species.PALDEA_TAUROS)) {
|
||||
@ -5574,7 +5601,7 @@ export function initMoves() {
|
||||
.unimplemented(),
|
||||
new AttackMove(Moves.REVELATION_DANCE, Type.NORMAL, MoveCategory.SPECIAL, 90, 100, 15, -1, 0, 7)
|
||||
.danceMove()
|
||||
.partial(),
|
||||
.attr(RevelationDanceTypeAttr),
|
||||
new AttackMove(Moves.CORE_ENFORCER, Type.DRAGON, MoveCategory.SPECIAL, 100, 100, 10, -1, 0, 7)
|
||||
.target(MoveTarget.ALL_NEAR_ENEMIES)
|
||||
.partial(),
|
||||
|
Loading…
Reference in New Issue
Block a user