Yami's Enemy Character Set Hidden Character Bug

Hey! 🙂

I've run into a bit of an issue with Yami's Enemy Character Set script. Namely, it doesn't work with the "Appear Halfway" event command. While hidden, I can't target the enemy, but their sprite is still shown.

Could someone please help me fix this bug?

Thanks! 🙂
Bump-a roo!~
Hey there,

Didn't try it yet, but you could try to add this somewhere between Yamis Battle Symphony and Main:
Code:
class Sprite_Battler
  
  #--------------------------------------------------------------------------
  # Sprite_Battler#update_charset_bitmap  (Modified)
  #   Initialize Battler Visibility
  #--------------------------------------------------------------------------
  alias_method(:update_charset_bitmap_ILC_initVisibility, :update_charset_bitmap)
  def update_charset_bitmap
    change = @battler && [email protected]_custom_charset? && graphic_changed?
    update_charset_bitmap_ILC_initVisibility
    init_visibility  if change
  end
end
Gave it a test, and it works like a charm! Thank you very much! 👋

EDIT: Not an issue with the fix you provided, but a similar enough issue that I thought it may be an quick fix. It seems the enemies that are revived during battle don't show their sprites again either. If you get the chance, could you take a look at it?

Original thread: https://forums.rpgmakerweb.com/threads/yamis-enemy-character-set-hidden-character-bug.96581/