adiktuzmiko

Slip Damage EX Draft Fix

Dec 16th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.16 KB | None | 0 0
  1.   #Draft of possible fix for battler transformation problem
  2.   #Put this below the original script
  3.  
  4.   #--------------------------------------------------------------------------
  5.   # ? Overwrite method: regenerate_hp_battle
  6.   #--------------------------------------------------------------------------
  7.   def regenerate_hp_battle
  8.     damage = 0
  9.     if actor?
  10.       for equip in equips
  11.         next if equip.nil?
  12.         b = self
  13.         damage += eval(equip.slip_hp_prog_eval) unless equip.slip_hp_prog_eval.nil?
  14.       end
  15.       for state in states
  16.         next if state.nil?
  17.         clear_slip_states if @state_cause == nil
  18.         damage += @slip_hp_damage[state.id]
  19.         a = @state_cause[state.id]
  20.         b = self
  21.         damage += eval(state.slip_hp_prog_eval) unless state.slip_hp_prog_eval.nil?
  22.       end
  23.     elsif enemy?
  24.       for state in states
  25.         next if state.nil?
  26.         clear_slip_states if @state_cause == nil
  27.         damage += @slip_hp_damage[state.id]
  28.         a = @state_cause[state.id]
  29.         b = self
  30.         damage += eval(state.slip_hp_prog_eval) unless state.slip_hp_prog_eval.nil?
  31.       end
  32.     end
  33.     return damage
  34.   end
Advertisement
Add Comment
Please, Sign In to add comment