Added exceptions for Rollout and check for active ability

This commit is contained in:
frutescens 2024-09-23 19:28:31 -07:00
parent f8b143d3d0
commit 880736277a
2 changed files with 4 additions and 3 deletions

View File

@ -973,7 +973,7 @@ class AromaVeilTag extends ArenaTag {
}
lapse(_arena: Arena): boolean {
return this.source.isActive(true);
return this.source.isActive(true) && this.source.hasAbility(Abilities.AROMA_VEIL);
}
apply(arena: Arena, args: any[]): boolean {

View File

@ -3,7 +3,7 @@ import { getPokemonNameWithAffix } from "../messages";
import Pokemon, { MoveResult, HitResult } from "../field/pokemon";
import { StatusEffect } from "./status-effect";
import * as Utils from "../utils";
import { ChargeAttr, MoveFlags, allMoves, MoveCategory, applyMoveAttrs, StatusCategoryOnAllyAttr, HealOnAllyAttr } from "./move";
import { ChargeAttr, MoveFlags, allMoves, MoveCategory, applyMoveAttrs, StatusCategoryOnAllyAttr, HealOnAllyAttr, ConsecutiveUseDoublePowerAttr } from "./move";
import { Type } from "./type";
import { BlockNonDirectDamageAbAttr, FlinchEffectAbAttr, ReverseDrainAbAttr, applyAbAttrs, ProtectStatAbAttr } from "./ability";
import { TerrainType } from "./terrain";
@ -2481,7 +2481,8 @@ export class TormentTag extends MoveRestrictionBattlerTag {
if ( !lastMove ) {
return false;
}
if (lastMove.move === move && lastMove.result === MoveResult.SUCCESS && lastMove.move !== Moves.STRUGGLE) {
const isLockedIntoMove = allMoves[lastMove.move].hasAttr(ConsecutiveUseDoublePowerAttr);
if (lastMove.move === move && lastMove.result === MoveResult.SUCCESS && lastMove.move !== Moves.STRUGGLE && !isLockedIntoMove) {
return true;
}
return false;