Advertisement
Zeriab

RMXP DBS battle message fix

Sep 24th, 2011
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.47 KB | None | 0 0
  1. class Scene_Battle
  2.   ##
  3.   # Prevent the senseless refreshing of the status window while a battle message
  4.   # is displayed.
  5.   #
  6.   alias_method :zeriab_antilag_update,   :update
  7.   def update
  8.     if @message_window.visible
  9.       tmp_method = @status_window.method('refresh')
  10.       def @status_window.refresh; end
  11.       zeriab_antilag_update
  12.       @status_window.class.send(:define_method, :refresh, tmp_method)
  13.     else
  14.       zeriab_antilag_update
  15.     end
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement