I'm using Mr. Trivel's Hurt Sounds plugin which works almost flawlessly, but I also use Yanfly's Absorption Barrier, and even if it fully absorbs a damage, it still triggers hurt sounds. What's the way to fix this?
MV MrTS_HurtSounds triggering on YEP Barrier damage
Javascript/Plugin SupportOpen the Hurt Sounds plugin in a text editor. Go to line 68 and make a new line after it that says
Then go down two lines and change the conditional to read:
That will make the sound only play if the target actually loses HP, regardless of why they might not.
Code:
let currHp = target.hp;
Then go down two lines and change the conditional to read:
Code:
if (currHp != target.hp && target._hurtSounds.length > 0)
That will make the sound only play if the target actually loses HP, regardless of why they might not.
Original thread: https://forums.rpgmakerweb.com/threads/mrts_hurtsounds-triggering-on-yep-barrier-damage.164176/