#==============================================================================
# ■ Scene_Battle (分割定義 6)
#------------------------------------------------------------------------------
# 平时被动触发技能
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# ● 被动技能判断開始
#--------------------------------------------------------------------------
def update_phase6
for battler in $game_party.actors
unless @action_battlers.include?(battler) and @command.include?(battler)
if battler.hp>0
#获取角色可以发动的被动技能id
for i in @passive_skill[battler.id-1]
skill = $data_skills[i]
if rand(10000)<skill.hit and not @passive_skill_used.include?(i)
battler.current_action.kind = 3
battler.current_action.skill_id = i
action_start(battler)
#一旦发动一次就不发动
@passive_skill_used.push(i)
end
end
end
end
end
end
end