They doesn't work if the function doesn't have a name. So this fixes that.Is this a fix for a bug with the standard scripts? That is what this thread is for. Are you saying there is something wrong with the default scripts?
Sorry then, I think I need some rest, but yes, it's not a bugfix for core classes...What doesn't work? This thread is for bugs with the default scripts. "Your class" implies stuff YOU are doing/changing, so is not related to the default scripts. Therefore it is not a bug fix.
Are you sure the states option "remove at battle end" isn't checked?
The bug I found only occurs with those states that has "remove at battle end" option checked. Those that are unchecked are just fine and stays at the end if the battle, regardless if escaping is successful or failed.Are you sure the states option "remove at battle end" isn't checked?
Yes that is the error . I believed it is caused because, when there is no formula the evaluation function doesn't actually return a number which is why that 'createLinearGradient' function is producing an error over a float parameter that doesn't exists.Is this the error?
Failed to execute 'creaeLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is non-finite.
That's a weird-looking error for a damage formula being missing!