Hi! So I'm trying to run a bit of javascript after an attack that hits two random enemies, and an attack that hits four random enemies. The problem is that instead of running after all the attacks are finished, it runs after each attack. How would I fix this? This is the current notetags I have, and I'm using Yanfly's SkillCore:
JavaScript:
<After Eval>
// Up the cacophony counter by two
user._stateTurns[33] = user._stateTurns[33]+2;
</After Eval>