Skip to content

Commit b5de9de

Browse files
committed
merge changes on beta branch
1 parent c3438de commit b5de9de

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

src/data/move.ts

-29
Original file line numberDiff line numberDiff line change
@@ -5379,35 +5379,6 @@ export class SuppressAbilitiesIfActedAttr extends MoveEffectAttr {
53795379
}
53805380
}
53815381

5382-
/**
5383-
* Applies the effects of {@linkcode SuppressAbilitiesAttr} if the target has already moved this turn.
5384-
* @extends MoveEffectAttr
5385-
* @see {@linkcode Moves.CORE_ENFORCER} (the move which uses this effect)
5386-
*/
5387-
export class SuppressAbilitiesIfActedAttr extends MoveEffectAttr {
5388-
/**
5389-
* If the target has already acted this turn, apply a {@linkcode SuppressAbilitiesAttr} effect unless the
5390-
* abillity cannot be suppressed. This is a secondary effect and has no bearing on the success or failure of the move.
5391-
*
5392-
* @returns True if the move occurred, otherwise false. Note that true will be returned even if the target has not
5393-
* yet moved or if the target's abiilty is un-suppressable.
5394-
*/
5395-
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
5396-
if (!super.apply(user, target, move, args)) {
5397-
return false;
5398-
}
5399-
5400-
if (target.turnData.acted) {
5401-
const suppressAttr = new SuppressAbilitiesAttr();
5402-
if (suppressAttr.getCondition()(user, target, move)) {
5403-
suppressAttr.apply(user, target, move, args);
5404-
}
5405-
}
5406-
5407-
return true;
5408-
}
5409-
}
5410-
54115382
export class TransformAttr extends MoveEffectAttr {
54125383
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise<boolean> {
54135384
return new Promise(resolve => {

src/phases.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import { PlayerGender } from "#enums/player-gender";
6666
import { Species } from "#enums/species";
6767
import { TrainerType } from "#enums/trainer-type";
6868
import { applyChallenges, ChallengeType } from "./data/challenge";
69-
import { ExpNotification } from "./enums/exp-notification";
69+
7070

7171
const { t } = i18next;
7272

0 commit comments

Comments
 (0)