Skip to content

Commit

Permalink
Update src/escenas/libroPrimaria/EscenaChuy.ts
Browse files Browse the repository at this point in the history
Co-authored-by: asanzo <[email protected]>
  • Loading branch information
dlopezalvas and asanzo authored Jun 5, 2023
1 parent 762375b commit 14f4258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/escenas/libroPrimaria/EscenaChuy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class EscenaChuy extends EscenaDesdeMapa {
}

estaEnPosicionFinalSiLaTiene(): boolean {
return !this.xFinal || this.automata.casillaActual().sos(this.yFinal, this.xFinal) || this.automata.alFinalDelCamino();
return this.xFinal === undefined || this.automata.casillaActual().sos(this.yFinal, this.xFinal) || this.automata.alFinalDelCamino();
}

noHayPelotas(): boolean {
Expand Down

0 comments on commit 14f4258

Please sign in to comment.