Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 162
    • Issues 162
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1985

Closed
Open
Created Jul 28, 2025 by Snozbear@Snozbear

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.

Edited Jul 28, 2025 by Snozbear
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking