mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +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),
|
||||
* those moves are the only ones considered for selection on this turn.
|
||||
*/
|
||||
const killMoves = movePool.filter(pkmnMove => {
|
||||
const koMoves = movePool.filter(pkmnMove => {
|
||||
if (!pkmnMove) {
|
||||
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);
|
||||
}, this);
|
||||
|
||||
if (killMoves.length > 0) {
|
||||
movePool = killMoves;
|
||||
if (koMoves.length > 0) {
|
||||
movePool = koMoves;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user