Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Draft of possible fix for battler transformation problem
- #Put this below the original script
- #--------------------------------------------------------------------------
- # ? Overwrite method: regenerate_hp_battle
- #--------------------------------------------------------------------------
- def regenerate_hp_battle
- damage = 0
- if actor?
- for equip in equips
- next if equip.nil?
- b = self
- damage += eval(equip.slip_hp_prog_eval) unless equip.slip_hp_prog_eval.nil?
- end
- for state in states
- next if state.nil?
- clear_slip_states if @state_cause == nil
- damage += @slip_hp_damage[state.id]
- a = @state_cause[state.id]
- b = self
- damage += eval(state.slip_hp_prog_eval) unless state.slip_hp_prog_eval.nil?
- end
- elsif enemy?
- for state in states
- next if state.nil?
- clear_slip_states if @state_cause == nil
- damage += @slip_hp_damage[state.id]
- a = @state_cause[state.id]
- b = self
- damage += eval(state.slip_hp_prog_eval) unless state.slip_hp_prog_eval.nil?
- end
- end
- return damage
- end
Advertisement
Add Comment
Please, Sign In to add comment