@@ -5379,35 +5379,6 @@ export class SuppressAbilitiesIfActedAttr extends MoveEffectAttr {
5379
5379
}
5380
5380
}
5381
5381
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
-
5411
5382
export class TransformAttr extends MoveEffectAttr {
5412
5383
apply ( user : Pokemon , target : Pokemon , move : Move , args : any [ ] ) : Promise < boolean > {
5413
5384
return new Promise ( resolve => {
0 commit comments