Bug Open

caster variables in target conditions

#6494 opened by Unknown 1 year ago

Unknownreported this bug

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, 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.

Unknowncommented

Hi, I just checked this since you mentioned it in the premium chat, but I have a hard time reproducing it.

Unknowncommented

Sorry I just saw this now, but that's really odd. No matter what I try I cannot get inline variables to work, and it just gives me the errors.

I've made a little demo mob and skill and put it here:

https://paste.denizenscript.com/View/135472

The idea is that you feed him a haybale and he'll walk towards a mob with the right stance and variable, but like I said I can't get the variable to work.

Sign in to join the discussion.