Ujraélsztő tárgy bugfix
This commit is contained in:
@@ -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")]
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user