[ACE] (Yanfly) Making enemy HP bars visible only if offending actor has certain state?

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/enemy-hp-bars/


So, no where in this script does it reference the subject that's targetting an enemy, and while it may sound a bit arbitrary, I'd like to have it so that when targetting or damaging an enemy or enemies, you can only see their HP bar if you have a certain state (or meet a certain condition altogether), such as an actor having the Ranger class or an actor having something like the Detect Life state applied. You see, I want to make knowledge (and a lack thereof) very important in my game, and make things like Divination spells be just as important as your usual damaging, healing, and buffing actions/spells.


So I feel that a conditional HP bar system would work well with that.


Would anyone happen to know how to adjust the Yanfly script in order to make this possible?
Bump

Original thread: https://forums.rpgmakerweb.com/threads/ace-yanfly-making-enemy-hp-bars-visible-only-if-offending-actor-has-certain-state.57701/