mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Add edge case to transform
This commit is contained in:
parent
43d73b01b1
commit
40ca6ddf55
@ -8618,12 +8618,14 @@ export function initMoves() {
|
|||||||
.condition((user, target, move) => !target.summonData?.illusion && !user.summonData?.illusion)
|
.condition((user, target, move) => !target.summonData?.illusion && !user.summonData?.illusion)
|
||||||
// transforming from or into fusion pokemon causes various problems (such as crashes)
|
// transforming from or into fusion pokemon causes various problems (such as crashes)
|
||||||
.condition((user, target, move) => !target.getTag(BattlerTagType.SUBSTITUTE) && !user.fusionSpecies && !target.fusionSpecies)
|
.condition((user, target, move) => !target.getTag(BattlerTagType.SUBSTITUTE) && !user.fusionSpecies && !target.fusionSpecies)
|
||||||
.ignoresProtect(),
|
.ignoresProtect()
|
||||||
|
.edgeCase(),
|
||||||
new AttackMove(Moves.BUBBLE, PokemonType.WATER, MoveCategory.SPECIAL, 40, 100, 30, 10, 0, 1)
|
new AttackMove(Moves.BUBBLE, PokemonType.WATER, MoveCategory.SPECIAL, 40, 100, 30, 10, 0, 1)
|
||||||
.attr(StatStageChangeAttr, [ Stat.SPD ], -1)
|
.attr(StatStageChangeAttr, [ Stat.SPD ], -1)
|
||||||
.target(MoveTarget.ALL_NEAR_ENEMIES),
|
.target(MoveTarget.ALL_NEAR_ENEMIES),
|
||||||
new AttackMove(Moves.DIZZY_PUNCH, PokemonType.NORMAL, MoveCategory.PHYSICAL, 70, 100, 10, 20, 0, 1)
|
new AttackMove(Moves.DIZZY_PUNCH, PokemonType.NORMAL, MoveCategory.PHYSICAL, 70, 100, 10, 20, 0, 1)
|
||||||
.attr(ConfuseAttr)
|
.attr(ConfuseAttr)
|
||||||
|
// Transforming should copy the target's rage fist hit count
|
||||||
.punchingMove(),
|
.punchingMove(),
|
||||||
new StatusMove(Moves.SPORE, PokemonType.GRASS, 100, 15, -1, 0, 1)
|
new StatusMove(Moves.SPORE, PokemonType.GRASS, 100, 15, -1, 0, 1)
|
||||||
.attr(StatusEffectAttr, StatusEffect.SLEEP)
|
.attr(StatusEffectAttr, StatusEffect.SLEEP)
|
||||||
|
Loading…
Reference in New Issue
Block a user