Ujraélsztő tárgy bugfix
This commit is contained in:
@@ -138,17 +138,17 @@ battles = [
|
|||||||
"spells": [
|
"spells": [
|
||||||
[], # Locke
|
[], # Locke
|
||||||
[ # Terra
|
[ # Terra
|
||||||
["Fira", 0, ("Fira", move_fire, True)],
|
["Fira", 0, ("Fira", move_fire, "ene")],
|
||||||
["Blizzara", 0, ("Blizzara", move_ice, True)],
|
["Blizzara", 0, ("Blizzara", move_ice, "ene")],
|
||||||
],
|
],
|
||||||
[ # Celes
|
[ # Celes
|
||||||
["Fira", 0, ("Fira", move_fire, True)],
|
["Fira", 0, ("Fira", move_fire, "ene")],
|
||||||
["Blizzara", 0, ("Blizzara", move_ice, True)],
|
["Blizzara", 0, ("Blizzara", move_ice, "ene")],
|
||||||
],
|
],
|
||||||
[] # Cyan
|
[] # Cyan
|
||||||
],
|
],
|
||||||
"inventory": [
|
"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
|
global menu
|
||||||
|
|
||||||
# No selection needed
|
# No selection needed
|
||||||
if target_type == None:
|
if target_type == "self":
|
||||||
on_pick([user]); close_menu(); return
|
on_pick([user]); close_menu(); return
|
||||||
|
|
||||||
pool = eparty if target_type else aparty
|
pool = eparty if target_type in ["ene", "ene_rev"] else aparty
|
||||||
candidates = [c for c in pool if not c.ko] # drop the `not c.ko` for revive items
|
candidates = [c for c in pool if not c.ko] if target_type not in ["ene_rev", "all_rev"] else pool
|
||||||
if not candidates:
|
if not candidates:
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ def menu_action(data):
|
|||||||
Damage(166, 0, 0, 0), StatusChange(0, 0, 0),
|
Damage(166, 0, 0, 0), StatusChange(0, 0, 0),
|
||||||
battle_data.anim_default))
|
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)))
|
lambda *a: open_menu((user, 0, aparty, eparty)))
|
||||||
case "magic":
|
case "magic":
|
||||||
open_spell_menu(user, aparty, eparty)
|
open_spell_menu(user, aparty, eparty)
|
||||||
|
|||||||
Reference in New Issue
Block a user