Bug: Resolve Placeholders on not-target skills

Discussion in 'Bug Reports' started by SaltyAimbOtter, Feb 13, 2020.

  1. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    4
    Likes Received:
    0
    Enter a brief description of what is broken Resolve Placeholders on not-target skills

    What version of Minecraft are you using?
    1.12

    What server jar are you using? Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? 4.7.2-FREE

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    I have the problem that placeholders are not resolved when the mechanic is a mechanic without a target.
    As you can see in the image, both the skill and the placeholder are working.
    Debug Level 5 says me that the skill is executed (which is correct it totally works with non-placeholder values): SkillMechanic is a NO-TARGET skilll. Executing...
    But its a "NO-TARGET skilll" and therefore the placeholder cant grab a value from the target (since there just isnt a target). IMO this should work even if the mechanic normally wouldnt have a target.
    Image: https://imgur.com/a/te21F9k

    Example Configurations
    Skill: https://pastebin.com/zEcnPHnr
    Mob:https://pastebin.com/mjipBTzg
     
    #1
  2. SaltyAimbOtter

    SaltyAimbOtter New Member

    Joined:
    Jul 15, 2018
    Messages:
    4
    Likes Received:
    0
    This also mean that no variables at all will be resolved, i tried to get around the bug by using a skill variable instead of a placeholder since I thought that might be independet but nope, the variable works fine on my test mechanics but not on the one without a "natural target".
    Test configuration:
    MobMetal:
    Skills:
    - setvariable{var=skill.p; value=<target.name>; t=STRING} @NearestPlayer{r=12}
    - message{m="<skill.var.p|ha> help"} @NearestPlayer{r=12}
    - disguise{d=PLAYER;player=<skill.var.p|ha>;skin=<skill.var.p|ha>} @NearestPlayer{r=12}
    - message{m="<skill.var.p|ha> help"} @NearestPlayer{r=12}
     
    #2

Share This Page