bugs with mmocore stats
Summary
MythicMob Version: v4.11.-3520 on minecraft 1.15.2 with MMOCore 1.6
When i created this skill, i have a problem with the magic_damage's stat of MMOCore.
MythicMob skills' config:
DivineFlame:
Skills:
- projectile{onTick=DivineFlame-Tick;onEnd=DivineFlame-End;v=50;i=1;d=140;vR=1;syo=1;sfo=1;vO=0.05;hnp=true;hp=true} @Forward{f=13}
DivineFlame-Tick:
Skills:
- effect:particles{p=flame;amount=10;speed=0} @origin
DivineFlame-End:
Skills:
- setvariable{var=caster.magicdamageDivineFlame;type=FLOAT;value="%mmocore_stat_magic_damage%"} @Self
- setvariable{var=caster.magicdamageObjectifFlame;type=FLOAT;value="%objective_score_ClercExplosiveDg%"} @Self
- setvariable{var=caster.magicdamageSkill;type=FLOAT;value="%mmocore_stat_skill_damage%"} @Self
- damage{a="<mmocore.skill.DivineFlame.damage>*(1+((<caster.var.magicdamageDivineFlame>+(<caster.var.magicdamageObjectifFlame>*2)+<caster.var.magicdamageSkill>)/100))"}
Steps to reproduce
With that amount i have 123 x 0.21% = 25.83%
but in my config file it show me that:
[15:30:52] [Server thread/WARN]: net.objecthunter.exp4j.tokenizer.UnknownFunctionOrVariableException: Unknown function or variable 'null' at pos 10 in expression '56.0*(1+((null+(null*2)+null)/100))'
[15:30:52] [Server thread/WARN]: at net.objecthunter.exp4j.tokenizer.Tokenizer.parseFunctionOrVariable(Tokenizer.java:177)
[15:30:52] [Server thread/WARN]: at net.objecthunter.exp4j.tokenizer.Tokenizer.nextToken(Tokenizer.java:116)
[15:30:52] [Server thread/WARN]: at net.objecthunter.exp4j.shuntingyard.ShuntingYard.convertToRPN(ShuntingYard.java:46)
[15:30:52] [Server thread/WARN]: at net.objecthunter.exp4j.ExpressionBuilder.build(ExpressionBuilder.java:188)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.placeholders.parsers.PlaceholderDouble.get(PlaceholderDouble.java:63)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.mechanics.DamageMechanic.castAtEntity(DamageMechanic.java:35)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeTargetedEntitySkill$5(SkillMechanic.java:450)
[15:30:52] [Server thread/WARN]: at java.lang.Iterable.forEach(Unknown Source)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:446)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeSkills$1(SkillMechanic.java:397)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.promise.LuminePromise.executeSync(LuminePromise.java:133)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.promise.LuminePromise.supplySync(LuminePromise.java:264)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.promise.Promise.supply(Promise.java:435)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.promise.Promise.supplying(Promise.java:104)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.tasks.TaskScheduler.run(TaskScheduler.java:63)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeSkills(SkillMechanic.java:397)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic$1.run(SkillMechanic.java:312)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93)
[15:30:52] [Server thread/WARN]: at io.lumine.xikage.mythicmobs.utils.Schedulers$LumineTask.run(Schedulers.java:162)
[15:30:52] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:81)
[15:30:52] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400)
[15:30:52] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1036)
[15:30:52] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:406)
[15:30:52] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984)
[15:30:52] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824)
[15:30:52] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
BUT if my stat have no "," like 100 x 0.21% = 21%, all works fine.
Current behavior
[15:30:48] [Server thread/WARN]: [MythicMobs] Couldn't execute skill 'DivineFlame-End': Enable debugging for a stack trace.