#============================================================================== # # ▼ Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars v1.10 # (Hidden Enemy HP Bar Fix) # # -- Last Updated: 2012.02.10 # -- Level: Easy, Normal # -- Requires: YEA - Ace Battle Engine v1.00+. # # Edited by : TheoAllen # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com # #============================================================================== =begin Pembukaan : Enemy HP Bar yanfly adalah addon dari Battle Enginenya yang nampilin bar HP pada musuh. Namun sayangnya, HP Bar ini secara default juga bakal ngereveal hidden enemy. Karena ini untuk kepentingan game gw juga, maka ini adalah script untuk perbaikannya Cara penggunaan : Pasang script ini tepat dibawah YEA - Enemy HP Bar Terms of Use : Ikutin aja ini http://yanflychannel.wordpress.com/terms-of-use/ Jangan lupa, kredit Yanfly. =end #============================================================================== # Do not edit below this line #============================================================================== class Enemy_HP_Gauge_Viewport < Viewport def gauge_visible? update_original_hide return false if @original_hide return false if case_original_hide? return true if @visible_counter > 0 return true if @gauge_width != @target_gauge_width if SceneManager.scene_is?(Scene_Battle) return false if SceneManager.scene.enemy_window.nil? return false if @battler.enemy? && @battler.hidden # Just add this line ~ unless @battler.dead? if SceneManager.scene.enemy_window.active return true if SceneManager.scene.enemy_window.enemy == @battler return true if SceneManager.scene.enemy_window.select_all? return true if highlight_aoe? end end end return false end end