dsiver144

Freezing Fix Patch

Mar 17th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #===============================================================================
  2. # Freezing Fix Patch
  3. # dsiver144
  4. #===============================================================================
  5. module BattleManager
  6. #-----------------------------------------------------------------------------
  7. # * overwrite method: judge_win_loss
  8. #-----------------------------------------------------------------------------
  9. def self.judge_win_loss
  10. if @phase
  11. return process_abort if $game_party.members.empty?
  12. return process_defeat if $game_party.all_dead?
  13. return process_victory if $game_troop.all_dead?
  14. return process_abort if aborting?
  15. end
  16. return false
  17. end
  18. end
  19.  
  20. class Scene_Battle
  21. #-----------------------------------------------------------------------------
  22. # * overwrite method: process_event
  23. #-----------------------------------------------------------------------------
  24. def process_event
  25. while !scene_changing?
  26. $game_troop.interpreter.update
  27. $game_troop.setup_battle_event
  28. wait_for_message
  29. wait_for_effect if $game_troop.all_dead?
  30. process_forced_action
  31. BattleManager.judge_win_loss
  32. break unless $game_troop.interpreter.running?
  33. update_for_wait
  34. end
  35. end
  36. #-----------------------------------------------------------------------------
  37. # * overwrite method: process_end_phase_events
  38. #-----------------------------------------------------------------------------
  39. def process_end_phase_events
  40. end
  41. end
  42. #===============================================================================
  43. # * END OF FILE
  44. #===============================================================================
Add Comment
Please, Sign In to add comment