mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 21:02:18 +02:00
removed order up sheer force interaction mention and test - updated comments
This commit is contained in:
parent
b24e57f49d
commit
6b879a9459
@ -6419,7 +6419,7 @@ export function initAbilities() {
|
|||||||
.condition(getSheerForceHitDisableAbCondition()),
|
.condition(getSheerForceHitDisableAbCondition()),
|
||||||
new Ability(Abilities.SHEER_FORCE, 5)
|
new Ability(Abilities.SHEER_FORCE, 5)
|
||||||
.attr(MovePowerBoostAbAttr, (user, target, move) => move.chance >= 1, 1.3)
|
.attr(MovePowerBoostAbAttr, (user, target, move) => move.chance >= 1, 1.3)
|
||||||
.attr(MoveEffectChanceMultiplierAbAttr, 0), // Should disable life orb, eject button, red card, kee/maranga berry if they get implemented
|
.attr(MoveEffectChanceMultiplierAbAttr, 0), // This attribute does not seem to function - Should disable life orb, eject button, red card, kee/maranga berry if they get implemented
|
||||||
new Ability(Abilities.CONTRARY, 5)
|
new Ability(Abilities.CONTRARY, 5)
|
||||||
.attr(StatStageChangeMultiplierAbAttr, -1)
|
.attr(StatStageChangeMultiplierAbAttr, -1)
|
||||||
.ignorable(),
|
.ignorable(),
|
||||||
|
@ -3453,8 +3453,7 @@ export class CutHpStatStageBoostAttr extends StatStageChangeAttr {
|
|||||||
/**
|
/**
|
||||||
* Attribute implementing the stat boosting effect of {@link https://bulbapedia.bulbagarden.net/wiki/Order_Up_(move) | Order Up}.
|
* Attribute implementing the stat boosting effect of {@link https://bulbapedia.bulbagarden.net/wiki/Order_Up_(move) | Order Up}.
|
||||||
* If the user has a Pokemon with {@link https://bulbapedia.bulbagarden.net/wiki/Commander_(Ability) | Commander} in their mouth,
|
* If the user has a Pokemon with {@link https://bulbapedia.bulbagarden.net/wiki/Commander_(Ability) | Commander} in their mouth,
|
||||||
* one of the user's stats are increased by 1 stage, depending on the "commanding" Pokemon's form. This effect does not respect
|
* one of the user's stats are increased by 1 stage, depending on the "commanding" Pokemon's form.
|
||||||
* effect chance, but Order Up itself may be boosted by Sheer Force.
|
|
||||||
*/
|
*/
|
||||||
export class OrderUpStatBoostAttr extends MoveEffectAttr {
|
export class OrderUpStatBoostAttr extends MoveEffectAttr {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -65,23 +65,4 @@ describe("Moves - Order Up", () => {
|
|||||||
affectedStats.forEach(st => expect(dondozo.getStatStage(st)).toBe(st === stat ? 3 : 2));
|
affectedStats.forEach(st => expect(dondozo.getStatStage(st)).toBe(st === stat ? 3 : 2));
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
it("should be boosted by Sheer Force while still applying a stat boost", async () => {
|
|
||||||
game.override.passiveAbility(Abilities.SHEER_FORCE).starterForms({ [Species.TATSUGIRI]: 0 });
|
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.TATSUGIRI, Species.DONDOZO]);
|
|
||||||
|
|
||||||
const [tatsugiri, dondozo] = game.scene.getPlayerField();
|
|
||||||
|
|
||||||
expect(game.scene.triggerPokemonBattleAnim).toHaveBeenLastCalledWith(tatsugiri, PokemonAnimType.COMMANDER_APPLY);
|
|
||||||
expect(dondozo.getTag(BattlerTagType.COMMANDED)).toBeDefined();
|
|
||||||
|
|
||||||
game.move.select(Moves.ORDER_UP, 1, BattlerIndex.ENEMY);
|
|
||||||
expect(game.scene.currentBattle.turnCommands[0]?.skip).toBeTruthy();
|
|
||||||
|
|
||||||
await game.phaseInterceptor.to("BerryPhase", false);
|
|
||||||
|
|
||||||
expect(dondozo.battleData.abilitiesApplied.includes(Abilities.SHEER_FORCE)).toBeTruthy();
|
|
||||||
expect(dondozo.getStatStage(Stat.ATK)).toBe(3);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user