Kővévált halottnak számít

This commit is contained in:
markojozsef
2026-10-16 15:09:24 +02:00
parent e737bf09b7
commit 5a06c526cc

View File

@@ -285,13 +285,13 @@ def update(game, dt):
for m in menu:
m.update()
if len(enemies) != 0 and all(e.ko for e in enemies):
if len(enemies) != 0 and all(e.ko or e.stone for e in enemies):
print("\nVICTORY! all enemies were defeated.")
battle_music.stop()
gamestate.switch_gamestate(game,"overworld")
return
if len(party_members) != 0 and all(a.ko for a in party_members):
if len(party_members) != 0 and all(a.ko or a.stone for a in party_members):
print("\nGAME OVER! the party was defeated.")
battle_music.stop()
gamestate.switch_gamestate(game,"gameover")