mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 07:12:32 +02:00
Fully implement Flower Gift and Victory Star
This commit is contained in:
parent
4a1033ce5a
commit
c39fb8e694
@ -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>,
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user