Ujraélsztő tárgy bugfix

This commit is contained in:
markojozsef
2026-10-11 16:36:38 +02:00
parent 0fd7e99b08
commit ba46430a4e
2 changed files with 9 additions and 9 deletions

View File

@@ -138,17 +138,17 @@ battles = [
"spells": [
[], # Locke
[ # Terra
["Fira", 0, ("Fira", move_fire, True)],
["Blizzara", 0, ("Blizzara", move_ice, True)],
["Fira", 0, ("Fira", move_fire, "ene")],
["Blizzara", 0, ("Blizzara", move_ice, "ene")],
],
[ # Celes
["Fira", 0, ("Fira", move_fire, True)],
["Blizzara", 0, ("Blizzara", move_ice, True)],
["Fira", 0, ("Fira", move_fire, "ene")],
["Blizzara", 0, ("Blizzara", move_ice, "ene")],
],
[] # Cyan
],
"inventory": [
["Phoenix Down",67, ("Phoenix Down", move_phoenix, False)]
["Phoenix Down",67, ("Phoenix Down", move_phoenix, "all_rev")]
]
}
]

View File

@@ -153,11 +153,11 @@ def open_target_menu(user, aparty, eparty, target_type, on_pick, back):
global menu
# No selection needed
if target_type == None:
if target_type == "self":
on_pick([user]); close_menu(); return
pool = eparty if target_type else aparty
candidates = [c for c in pool if not c.ko] # drop the `not c.ko` for revive items
pool = eparty if target_type in ["ene", "ene_rev"] else aparty
candidates = [c for c in pool if not c.ko] if target_type not in ["ene_rev", "all_rev"] else pool
if not candidates:
return
@@ -213,7 +213,7 @@ def menu_action(data):
Damage(166, 0, 0, 0), StatusChange(0, 0, 0),
battle_data.anim_default))
open_target_menu(user, aparty, eparty, "enemy", queue_attack,
open_target_menu(user, aparty, eparty, "ene", queue_attack,
lambda *a: open_menu((user, 0, aparty, eparty)))
case "magic":
open_spell_menu(user, aparty, eparty)