#--------------------------------------------------------------------------
# ● 取消选择敌人目标时
#--------------------------------------------------------------------------
alias skill_for_both_on_enemy_cancel on_enemy_cancel
def on_enemy_cancel
item = current_used_item
if item.for_both? && !@from_actor_selection # 判断是否为双向技能
change_current_item_selection(item)
@from_enemy_selection = true
select_actor_selection # 开启我方队员选择窗口
@enemy_window.hide
else
selection_reset
skill_for_both_on_enemy_cancel # 呼叫原有方法
end
end
#--------------------------------------------------------------------------
# ● 取消选择敌人目标时
#--------------------------------------------------------------------------
alias skill_for_both_on_enemy_cancel on_enemy_cancel
def on_enemy_cancel
item = current_used_item
if item.for_both? && !@from_actor_selection # 判断是否为双向技能
change_current_item_selection(item)
@from_enemy_selection = true
select_actor_selection # 开启我方队员选择窗口
@enemy_window.hide
else
selection_reset
skill_for_both_on_enemy_cancel # 呼叫原有方法
end
end