formatting

This commit is contained in:
Matthew Ross 2024-05-11 18:36:18 -07:00
parent 1590b0cd26
commit 60ac0a1ab8

View File

@ -994,21 +994,17 @@ export class DamageBoostAbAttr extends PreAttackAbAttr {
constructor(damageMultiplier: number, condition: PokemonAttackCondition){ constructor(damageMultiplier: number, condition: PokemonAttackCondition){
super(true); super(true);
this.damageMultiplier = damageMultiplier this.damageMultiplier = damageMultiplier;
this.condition = condition this.condition = condition;
} }
applyPreAttack(pokemon: Pokemon, passive: boolean, target: Pokemon, move: PokemonMove, args: any[]): boolean { applyPreAttack(pokemon: Pokemon, passive: boolean, target: Pokemon, move: PokemonMove, args: any[]): boolean {
console.log('trying to apply')
console.log(args[0].value)
if (this.condition(pokemon, target, move.getMove())) { if (this.condition(pokemon, target, move.getMove())) {
(args[0] as Utils.NumberHolder).value *= this.damageMultiplier; (args[0] as Utils.NumberHolder).value *= this.damageMultiplier;
console.log('did apply')
console.log(args[0].value)
return true; return true;
} }
return false return false;
} }
} }