Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PokeBattle_Battler
- attr_accessor :lives
- alias life_initialize initialize
- def initialize(btl,index)
- life_initialize(btl, index)
- pbInitLives
- end
- def pbInitLives
- if $game_switches[100] && @index == 1
- @lives = $game_variables[76]
- else
- @lives = 1
- end
- end
- end
- class PokeBattle_Battle
- def pbLivesChanged(pkmn)
- end
- end
- class PokeBattle_Scene
- def pbBreakBar(pkmn)
- @sprites["battlebox#{pkmn.index}"].refresh
- @viewport.flash(Color.new(255, 255, 255), 20)
- 20.times do
- pbGraphicsUpdate
- pbInputUpdate
- pbFrameUpdate
- @viewport.update
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment