MV Help with an edit for YEP Element Core

I made it so every time an element gets absorbed, a sound plays.
Code:
if (this.isAbsorbElement(elementId) && result > 0) {
    result = Math.min(result - 2.0, -0.01);
    AudioManager.playSe({ name: 'drain', volume: 90, pitch: 100 });
  }
But it doesn't activate with Force Element Rate (setting them to negative values will also absorb), and I can't seem to find a way to change that.
It's hard to make any suggestions when we don't have any idea where you put that code.
I added the AudioManager line under line 499.
Just from a cursory glance, it looks like it's not doing what you want because the code doesn't get that far. On line 495 it gets any forced element rate, then if there is one returns that value, which means none of the code after that is executed.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-an-edit-for-yep-element-core.164482/