MV Yanfly Damage Over Time overlapping animation SE

Using the Extended Damage Over Time plugin, I have states such as Burn that play an animation whenever an enemy is subject to the damage from their burn state. I'm running into the issue though where if two or more enemies have a state applied to them, the SE from the animation gets overlapped and creates that strange sound when two audio files are played with only a very small delay.

Does anyone know of a way to circumvent this issue? All I can think of doing at the moment is to just remove the animation from the state, or to copy the animation and use one without the sound effect for the state's animation. I'd love it if I could still have the SE play out, just once no matter how many enemies are affected by the state.
You can use a switch. You don't show how you're doing the stuff now, so random example:
Code:
<Custom DoT Formula>
if (!BattleManager.playedSound)
{
    AudioManager.playSe({name: "Poison", volume: 90, pitch: 100, pan: 0, pos: 0});
    BattleManager.playedSound = true;
}
value = 100;
</Custom DoT Formula>

The tricky part might be when to reset that, by setting BattleManager.playedSound to false. How are you having multiple enemies ending their turn and getting this DoT at the same time to begin with?
You can use a switch. You don't show how you're doing the stuff now, so random example:
Code:
<Custom DoT Formula>
if (!BattleManager.playedSound)
{
    AudioManager.playSe({name: "Poison", volume: 90, pitch: 100, pan: 0, pos: 0});
    BattleManager.playedSound = true;
}
value = 100;
</Custom DoT Formula>

The tricky part might be when to reset that, by setting BattleManager.playedSound to false. How are you having multiple enemies ending their turn and getting this DoT at the same time to begin with?
I have skills that attack all enemies and have a chance of applying states to them. If it's a state like Burn, then it plays an animation when they lose HP as a result of it and that animation plays a sound.

Here's my current notetag:
Code:
<DoT Formula: 30 + a.mat / 10>
<DoT Element: 2>
<DoT Animation: 21>
I understand the concept of the DoT - my question was how are more than one enemy suffering the DoT damage at the same time?

In the default battle system, only one enemy is ending their turn - and therefore having a regeneration phase and taking DoT damage - at a time.
I understand the concept of the DoT - my question was how are more than one enemy suffering the DoT damage at the same time?

In the default battle system, only one enemy is ending their turn - and therefore having a regeneration phase and taking DoT damage - at a time.
Oh, I'm not too sure about that. That's pretty much how it's always been. Regen/Damage has always happened at the end of a "round" of combat for both the enemies and the party. Not after someone's turn. Maybe YEP Battle Engine Core changes it? I'm not familiar with the vanilla MV battle system.
Then the answer is they're all happening at the end of the turn, so you'd reset the flag at the beginning of the next.

Code:
<Custom Turn Start Effect>
BattleManager.playedSound = false;
</Custom Turn Start Effect>
Then the answer is they're all happening at the end of the turn, so you'd reset the flag at the beginning of the next.

Code:
<Custom Turn Start Effect>
BattleManager.playedSound = false;
</Custom Turn Start Effect>
Am I meant to put that in the state's notes? It didn't work, if so.

Here is a video to show exactly what is happening. Maybe I'm explaining it poorly.
Am I meant to put that in the state's notes?
Yes, you were meant to put the tags from post 2 and post 6 into the state's notes.

Since you're calling the animation manually, you would necessarily delete the other DoT notetags.
What do you mean by deleting the other DoT notetags? I'd still need to keep the Element tag for the element, and for the animation tag I would need to just change it to one that has the same animation but no sound effect, right? But then I'd get rid of the formula tag and just replace what's in there now with the "value" section?

Sorry if I'm being a bother lol.
Yes, if that's how you're doing it.
Yes, if that's how you're doing it.
Alright, thank you! Just making sure I actually understand what is going on rather than just copying things down lol. Thank you very much, you've been a big help.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-damage-over-time-overlapping-animation-se.169086/