mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Preact: Skip choices for tatsugiri when in commanding mode (#2642)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
This commit is contained in:
parent
b9538a2eae
commit
ae869bf214
|
|
@ -295,7 +295,11 @@ export class BattleChoiceBuilder {
|
|||
const request = this.request;
|
||||
switch (request.requestType) {
|
||||
case 'move':
|
||||
while (this.choices.length < request.active.length && !request.active[this.choices.length]) {
|
||||
while (
|
||||
(this.choices.length < request.active.length &&
|
||||
!request.active[this.choices.length]) ||
|
||||
request.side?.pokemon[this.choices.length]?.commanding
|
||||
) {
|
||||
this.choices.push('pass');
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1031,6 +1031,7 @@ export interface ServerPokemon extends PokemonDetails, PokemonHealth {
|
|||
condition: string;
|
||||
active: boolean;
|
||||
reviving: boolean;
|
||||
commanding: boolean;
|
||||
/** unboosted stats */
|
||||
stats: {
|
||||
atk: number,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user