mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-07 08:52:17 +02:00
"killMoves" --> "koMoves"
This commit is contained in:
parent
eaca82cf55
commit
ed84c75f8e
@ -4025,7 +4025,7 @@ export class EnemyPokemon extends Pokemon {
|
|||||||
* If there are any moves that can KO an opponent (i.e. a player Pokemon),
|
* If there are any moves that can KO an opponent (i.e. a player Pokemon),
|
||||||
* those moves are the only ones considered for selection on this turn.
|
* those moves are the only ones considered for selection on this turn.
|
||||||
*/
|
*/
|
||||||
const killMoves = movePool.filter(pkmnMove => {
|
const koMoves = movePool.filter(pkmnMove => {
|
||||||
if (!pkmnMove) {
|
if (!pkmnMove) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -4041,8 +4041,8 @@ export class EnemyPokemon extends Pokemon {
|
|||||||
&& moveTargets.some(p => p.getAttackDamage(this, move, !p.battleData.abilityRevealed, false, isCritical).damage >= p.hp);
|
&& moveTargets.some(p => p.getAttackDamage(this, move, !p.battleData.abilityRevealed, false, isCritical).damage >= p.hp);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
if (killMoves.length > 0) {
|
if (koMoves.length > 0) {
|
||||||
movePool = killMoves;
|
movePool = koMoves;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user