Fully implement Flower Gift and Victory Star

This commit is contained in:
Sirz Benjie 2025-01-30 15:56:53 -06:00
parent 4a1033ce5a
commit c39fb8e694
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 1 additions and 2 deletions

View File

@ -5616,7 +5616,6 @@ export function applyStatMultiplierAbAttrs(
* @param statValue {@linkcode Utils.NumberHolder} the value of the checked stat
* @param checkedPokemon {@linkcode Pokemon} the Pokemon with the checked stat
* @param ignore {@linkcode boolean} Whether or not the ability should be ignored by the pokemon or its move.
*
* @param args unused
*/
export function applyAllyStatMultiplierAbAttrs(attrType: Constructor<AllyStatMultiplierAbAttr>,

View File

@ -5057,7 +5057,7 @@ export class EnemyPokemon extends Pokemon {
return move.category !== MoveCategory.STATUS
&& moveTargets.some(p => {
const doesNotFail = move.applyConditions(this, p, move) || [ Moves.SUCKER_PUNCH, Moves.UPPER_HAND, Moves.THUNDERCLAP ].includes(move.id);
return doesNotFail && p.getAttackDamage(this, move, !p.battleData.abilityRevealed, false, !p.getAlly()?.battleData.abilityRevealed, isCritical).damage >= p.hp;
return doesNotFail && p.getAttackDamage(this, move, !p.battleData.abilityRevealed, false, !p.getAlly()?.battleData.abilityRevealed, false, isCritical).damage >= p.hp;
});
}, this);