[Ace] Ramiro's Mother 3 rolling damage error

After a vigorous amount of searching and not finding anything, I'm trying here in hopes of finally getting this fixed OTL

I installed Ramiro's Mother 3 rolling damage add-on to go with his mother 3 battle system but now every time a player is fatally hit (when it would otherwise straight up kill them without rolling damage) the game gives me this error.

EDIT: Sorry, here's the core script, and scrolling damage script.

[IMG]http://i.imgur.com/z5SPD2H.png[/IMG]

It switches between line 132 and 135, and im not really that good with ruby so I can't figure out whats wrong?

Here's the chunk of script that's given from the error.

  def update_actor_hp_scroll    if @scroll_hp > @hp      #return if BattleManager.actor      return if SceneManager.scene.subject && SceneManager.scene.subject == self      if Graphics.frame_count % scroll_interval == 0        @scroll_hp -= 1        refresh_scroll      end      elsif @scroll_hp < @hp      @scroll_hp += 1 if Graphics.frame_rate % scroll_recovery_interval == 0      refresh_scroll    end      end   endHopefully someone can help?
What's needed is a link to the script itself so that people can look at it without having to go hunting.  Please edit your OP with the link.

Thanks.
If scroll_interval or scroll_recovery_interval are user options, make sure they're not set to 0.

If they're not user options, then change the two lines to if (Graphics.frame_count % scroll_interval == 0 rescue false) and @scroll_hp += 1 if (Graphics.frame_rate % scroll_recovery_interval == 0 rescue false) and see if those prevent the crashes.  Also try "rescue true" instead of rescue false if the false gives weird behavior but without crashes.
What's needed is a link to the script itself so that people can look at it without having to go hunting.  Please edit your OP with the link.

Thanks.
Sorry about that! I knew I forgot something OTL

If scroll_interval or scroll_recovery_interval are user options, make sure they're not set to 0.

If they're not user options, then change the two lines to if (Graphics.frame_count % scroll_interval == 0 rescue false) and @scroll_hp += 1 if (Graphics.frame_rate % scroll_recovery_interval == 0 rescue false) and see if those prevent the crashes.  Also try "rescue true" instead of rescue false if the false gives weird behavior but without crashes.
I changed them but they're still giving the divide by zero error.
The "rescue false" didn't work?

Then try this: if Graphics.frame_count % ([scroll_interval, 1].max) == 0 and @scroll_hp += 1 if Graphics.frame_rate % ([scroll_recovery_interval, 1].max) == 0

These should remove the crashes.  But they might cause some bizarre behavior.  If these don't clear the crashes, then one of two things has happened: either I didn't understand the code you posted well, or you posted the wrong segment of code (which I actually think is possible since you said the two errors were happening three lines apart and I don't see anything in your code where there are similar statements exactly three lines apart).
This fixed it!

I also don't notice any odd behavior, so all is well!

Thank you so much, I appreciate it!!

Original thread: https://forums.rpgmakerweb.com/threads/ace-ramiros-mother-3-rolling-damage-error.41580/