#消耗 HP 技能ID以及消耗量。
CONSUME_HP_SKILLS = {57=>100,61=>120}
class Game_Battler
#--------------------------------------------------------------------------
alias add_skill_can_use?_xdrs skill_can_use?
def skill_can_use?(skill_id)
if CONSUME_HP_SKILLS.keys.include?(skill_id)
return self.hp > CONSUME_HP_SKILLS[skill_id]
end
add_skill_can_use?_xdrs(skill_id)
end
end
#=============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
def make_skill_action_result
# 获取特技
[url=home.php?mod=space&uid=260100]@skill[/url] = $data_skills[@active_battler.current_action.skill_id]
# 如果不是强制行动
unless @active_battler.current_action.forcing
# 因为 SP 耗尽而无法使用的情况下
unless @active_battler.skill_can_use?(@skill.id)
# 清除强制行动对像的战斗者
$game_temp.forcing_battler = nil
# 移至步骤 1
@phase4_step = 1
return
end
end
# 消耗 SP
@active_battler.sp -= @skill.sp_cost