mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-18 15:55:10 +00:00
[Bug] Fix Commander crash after 5267 (#5524)
Fix reversed commander checks
This commit is contained in:
parent
1d7f916240
commit
02ae7952ad
@ -2783,8 +2783,8 @@ export class CommanderAbAttr extends AbAttr {
|
||||
// another Pokemon, this effect cannot apply.
|
||||
|
||||
// TODO: Should this work with X + Dondozo fusions?
|
||||
return !(pokemon.getAlly().isFainted() || pokemon.getAlly().getTag(BattlerTagType.COMMANDED))
|
||||
&& globalScene.currentBattle?.double && pokemon.getAlly()?.species.speciesId === Species.DONDOZO;
|
||||
return globalScene.currentBattle?.double && pokemon.getAlly()?.species.speciesId === Species.DONDOZO
|
||||
&& !(pokemon.getAlly().isFainted() || pokemon.getAlly().getTag(BattlerTagType.COMMANDED));
|
||||
}
|
||||
|
||||
override apply(pokemon: Pokemon, passive: boolean, simulated: boolean, cancelled: null, args: any[]): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user