caster variables in target conditions
Summary
I am attempting to create a skill where the creature will only target another creature with of the same "set_type", which is a variable set on spawn, but when using inline target conditions to check if they match it errors out.
This may be related to Issue #1543 (closed), but unsure
Steps to reproduce
Basically just running something like this produces the issue.
- runaitargetselector{target=nearestconditionaltarget{mr=true;ms=true;conditions=[ - stance{s=breedingfemale} true - score{o=Taken;v=0} true - (chance{c=1} || varEquals{var=target.set_type;val="<caster.var.set_type>"})]}} @self
Current behavior
Currently the skill will spam the console with the error seen below and the matching target is not set.
[07:01:31 ERROR]: [MythicMobs] Failed to process placeholder <caster.var.set_type> in xPlaceholderString{'<caster.var.set_type>'}
[07:01:31 ERROR]: [MythicMobs] Cannot invoke "io.lumine.mythic.core.skills.placeholders.PlaceholderMeta.getCaster()" because "meta" is null (java.lang.NullPointerException)
Intended correct behavior
Ideally, we'd be able to use caster variables in target conditions
log/error file
https://paste.denizenscript.com/View/135176
Describe what you think the issue or any potential fixes may be.