Update PostDefendTypeChangeAbAttr to use PokemonType

This commit is contained in:
Dean 2025-03-10 17:29:30 -07:00
parent 2fdc7d3f49
commit 7e49304d0c

View File

@ -917,7 +917,7 @@ export class PostDefendApplyBattlerTagAbAttr extends PostDefendAbAttr {
} }
export class PostDefendTypeChangeAbAttr extends PostDefendAbAttr { export class PostDefendTypeChangeAbAttr extends PostDefendAbAttr {
private type: Type; private type: PokemonType;
override canApplyPostDefend(pokemon: Pokemon, passive: boolean, simulated: boolean, attacker: Pokemon, move: Move, hitResult: HitResult, args: any[]): boolean { override canApplyPostDefend(pokemon: Pokemon, passive: boolean, simulated: boolean, attacker: Pokemon, move: Move, hitResult: HitResult, args: any[]): boolean {
this.type = attacker.getMoveType(move); this.type = attacker.getMoveType(move);