if @wait_count > DOUBLE_HIT::DOUBLE_CLICK_TIME then
@key = nil
@wait_count = 0
end
old_update
end
end
class Scene_Battle
alias old_main main
def main
@judge_double_hit = false
old_main
end
alias old_ups6 update_phase4_step6
def update_phase4_step6
if rand(100) < DOUBLE_HIT::APPEAR_PROBABILITY and @active_battler.current_action.basic == 0 and $game_party.actors.size > 1 and !@target_battlers[0].dead? and !@judge_double_hit and @active_battler.is_a?(Game_Actor) then