From f9ddaceafe8f7035eb959087c887fc2c1ac420ae Mon Sep 17 00:00:00 2001 From: urkerab Date: Mon, 26 Oct 2020 00:38:40 +0000 Subject: [PATCH] Ignore As One boosts when already maxed out --- data/abilities.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/abilities.ts b/data/abilities.ts index a8f77644cfae..84f65cbb6656 100644 --- a/data/abilities.ts +++ b/data/abilities.ts @@ -180,8 +180,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = { onFoeTryEatItem: false, onSourceAfterFaint(length, target, source, effect) { if (effect && effect.effectType === 'Move') { - this.add('-ability', source, 'Chilling Neigh'); - this.boost({atk: length}, source, source, null, true); + this.boost({atk: length}, source, source, this.dex.getEffect('chillingneigh'), true); } }, name: "As One (Glastrier)", @@ -196,8 +195,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = { onFoeTryEatItem: false, onSourceAfterFaint(length, target, source, effect) { if (effect && effect.effectType === 'Move') { - this.add('-ability', source, 'Grim Neigh'); - this.boost({spa: length}, source, source, null, true); + this.boost({spa: length}, source, source, this.dex.getEffect('grimneigh'), true); } }, name: "As One (Spectrier)",