mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
Update src/data/ability.ts
Co-authored-by: Samuel H <flashfireex@gmail.com>
This commit is contained in:
parent
39392ace32
commit
d2321f725f
@ -884,10 +884,12 @@ export class VariableMovePowerAbAttr extends PreAttackAbAttr {
|
|||||||
|
|
||||||
export class PreAttackChangeType extends PreAttackAbAttr{
|
export class PreAttackChangeType extends PreAttackAbAttr{
|
||||||
private condition: PokemonAttackCondition;
|
private condition: PokemonAttackCondition;
|
||||||
constructor (condition:PokemonAttackCondition){
|
|
||||||
|
constructor (condition:PokemonAttackCondition) {
|
||||||
super(true);
|
super(true);
|
||||||
this.condition = condition;
|
this.condition = condition;
|
||||||
}
|
}
|
||||||
|
|
||||||
applyPreAttack(pokemon:Pokemon,passive:boolean,defender:Pokemon,move:PokemonMove): boolean{
|
applyPreAttack(pokemon:Pokemon,passive:boolean,defender:Pokemon,move:PokemonMove): boolean{
|
||||||
const MoveType = move.getMove().type;
|
const MoveType = move.getMove().type;
|
||||||
const originalType = pokemon.getTypes();
|
const originalType = pokemon.getTypes();
|
||||||
|
Loading…
Reference in New Issue
Block a user