Post Restart MythicMobs Error
Summary
There is mob that has 3 lives, these 3 lives are counted through the use of variables. It works fine, but after the server restarts, the first mob(in this case, the Cerberus), launches an error in the console, and gives it 1 extra life, meaning 4 lives now. This is not intended behavior. for some reason, the issue is settled after it happens once, and the count is fine after the first mob, however I would like if the first Cerberus doesn't have 4 lives and doesn't fire an error in the console
Steps to reproduce
The Skill File: https://pastebin.ubuntu.com/p/4qpPycKK3B/
The Mob File: https://pastebin.ubuntu.com/p/s5TtTGWTTk/
Restart the server, after restart, spawn the mob using /mm m spawn Cerberus, and kill it two times.
Current behavior
It's firing a console error at the very first mob being killed for the second time (second life of it) after a server restart and giving an extra life.
Intended correct behavior
The intended behavior is for it to not fire an error at the very first mob spawned of this type(no other mobs like this currently in my server) and to not give it an extra life.
Server log file
-> This is the error, recreated. https://pastebin.ubuntu.com/p/wTwyVpJzg8/
-> This is the server log. latest.txt
Debug log snippet
This is on debug level (4). https://pastebin.ubuntu.com/p/C9zHhFzd2R/
Proposed fixes
I do not know as I am not experienced in Java.
NOTE: Read discord ticket called "mythicmobs-0567".