battle-maiden-mizuki/Scripts/_.23.rb
2025-06-17 11:57:06 -05:00

35 lines
No EOL
1.4 KiB
Ruby
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#==============================================================================
# ■ RGSS3 逃走後処理修正 Ver1.00 by 星潟
#------------------------------------------------------------------------------
# アクター側の逃走成功時、隠れているはずの敵が出現してしまう不具合を修正します。
#==============================================================================
class Game_BattlerBase
attr_accessor :void_appear
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
alias initialize_hidden initialize
def initialize
initialize_hidden
@void_appear = false
end
#--------------------------------------------------------------------------
# ● 現れる
#--------------------------------------------------------------------------
alias appear_hidden appear
def appear
return if @void_appear == true
appear_hidden
end
end
class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# ● 戦闘終了処理
#--------------------------------------------------------------------------
alias on_battle_end_hidden on_battle_end
def on_battle_end
self.void_appear = true if self.enemy? && self.hidden?
on_battle_end_hidden
end
end