class Sprite_Battler
def animation_playing?
return @_animation != nil && @_loop_animation != nil
end
end
class Spriteset_Battle
def animation_playing?
(@enemy_sprites + @actor_sprites).each do |sprite|
next unless sprite.is_a?(Sprite_Battler)
return true if sprite.animation_playing?
end
return false
end
end
class Scene_Battle
alias_method :seph_pausebattlewhenanimations_scnblt_up1, :update_phase1
alias_method :seph_pausebattlewhenanimations_scnblt_up2, :update_phase2
alias_method :seph_pausebattlewhenanimations_scnblt_up3, :update_phase3
alias_method :seph_pausebattlewhenanimations_scnblt_up4, :update_phase4
alias_method :seph_pausebattlewhenanimations_scnblt_up5, :update_phase5
def update_phase1
return if @spriteset.animation_playing?
seph_pausebattlewhenanimations_scnblt_up1
end
def update_phase2
return if @spriteset.animation_playing?
seph_pausebattlewhenanimations_scnblt_up2
end
def update_phase3
return if @spriteset.animation_playing?
seph_pausebattlewhenanimations_scnblt_up3
end
def update_phase4
return if @spriteset.animation_playing?
seph_pausebattlewhenanimations_scnblt_up4
end
def update_phase5
return if @spriteset.animation_playing?
seph_pausebattlewhenanimations_scnblt_up5
end
end