Toxic issue

I tried implementing Yanfly's Toxic as I wanted a mechanic on my game like this. Made the state, copypasted the code, and in battle it just showed me an error. More specifically: 'TypeError: failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.'

Why is this? I literally just copypasted the code from yanfly's web.
Why is this? I literally just copypasted the code from yanfly's web.
both tags, as is? the only realistic way I could think you could get that would be having the regenerate effect without the apply one. can you still share what you have to be certain?
I tried implementing Yanfly's Toxic as I wanted a mechanic on my game like this. Made the state, copypasted the code, and in battle it just showed me an error. More specifically: 'TypeError: failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.'

Why is this? I literally just copypasted the code from yanfly's web.
This error usually happens when a gauge tries to display a decimal number. Did you perform a calculation involving division without using Math.floor, Math.round or Math.ceil?
rpgpic.png

this is the state. And yes, i copypasted both.
can you show a screenshot of your plugin manager so we can see what you have and when theyre loaded?
Yup, I'm using exclusively Yanfly plugins for this project.
Yanf.png
does it happen with just the buffs and states core plugin enabled?
copy-pasting it exactly as it is works just fine for me.
have you tried putting BuffsStatesCore above VisalHpGauge?
Their plugins are mostly in the right order. I think its just instant cast that is out of place, but it shouldnt pose an issue.
So I ended up making another character use toxic and it worked perfectly. I didn't quite get what was wrong but its working now.

Original thread: https://forums.rpgmakerweb.com/threads/toxic-issue.179568/