1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2024-11-23 01:43:28 +00:00
This commit is contained in:
Fastium 2022-06-16 19:21:21 +02:00
parent ab3292314d
commit aac7ba69f6

View File

@ -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();