Ujraélsztő tárgy bugfix
This commit is contained in:
@@ -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