From aac7ba69f6bf3d686c496051844680763578cb4a Mon Sep 17 00:00:00 2001 From: Fastium <79766552+Fastium@users.noreply.github.com> Date: Thu, 16 Jun 2022 19:21:21 +0200 Subject: [PATCH] ok --- src/Main/PokeMudry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/PokeMudry.java b/src/Main/PokeMudry.java index bfeae4e..63813a4 100644 --- a/src/Main/PokeMudry.java +++ b/src/Main/PokeMudry.java @@ -77,7 +77,7 @@ public class PokeMudry extends PortableApplication { } //end of the game - if(sp.p.getPv() <= 0 && !onEndScreen) { + if((sp.p.getPv() <= 0 || sp.p.getXp() >= sp.p.getXpMax() ) && !onEndScreen ) { g.zoom(1); g.resetCamera(); sp.se = sp.screenManager.getScreenEnd();