Verified Issue [MythicArtifacts] Infinite use bug using consumeHeldItem

Discussion in 'Bug Reports' started by xlsalvolx, May 14, 2017.

  1. xlsalvolx

    xlsalvolx Member
    Premium Supporter Supporter Contest Winner

    Joined:
    Jan 9, 2017
    Messages:
    164
    Likes Received:
    22
    What version or build # are you using?
    Mythicmobs build #2124
    MythicArtifacts 0.1.6

    What server jar are you using?
    Paper 1.11.2

    Describe the bug.

    The consumeHeldItem skill does not check if you still have the item in your inventory (or something similar). So if you trigger a skill using an item that should be deleted after you use it, you can still use the skill just by right clicking it again and looking at a block (on my case, because i'm using the onUse trigger). Note that if you just change your item slot or just open your inventory it stops.

    Showing the bug in this video:


    Configuration of the item in the video (translated in english)

    ITEM:
    Code:
    cardioshock:
      Id: 351
      Data: 1
      Display: '&e&l&kaa&4&lCardio &6&lshock&e&l&kaa'
      Enchantments:
      - PROTECTION_ENVIRONMENTAL:1
      Lore:
      - 'Right click to heal you with a shock'
      - '&4[&cSingle use&4]'
      - '&aspecial'
      Options:
        HideFlags: true
      Skills:
      - skill{s=cardiouso} ~onUse
    SKILL:
    Code:
    cardiouso:
      Cooldown: 1
      Skills:
      - potion{t=HEAL;d=1;l=0} @Self
      - potion{t=SLOW;d=10;l=20} @Self
      - consumeHeldItem{amount=1} @trigger
      - effect:particles{p=mobSpell;amount=6;speed=1;hs=0.7;y=0.7;color=#ffff00} @self
      - effect:particles{p=reddust;amount=8;speed=1;hs=0.7;y=0.7;color=#cd3300} @self
      - effect:sound{s=entity.firework.large_blast;v=1.0;p=2} @Self
    Hope this gets fixed really soon, it's game breaking.
     
    #1
    Gabriele“Sgdc3”C. likes this.
  2. Zarkiel

    Zarkiel Member
    Supporter

    Joined:
    Mar 23, 2016
    Messages:
    45
    Likes Received:
    19
    Can confirm it also happens with items using the durability lore, once the durability runs out and it's destroyed, this happens.
     
    #2
    xlsalvolx likes this.
  3. Gabriele“Sgdc3”C.

    Premium Supporter Supporter New

    Joined:
    Mar 21, 2016
    Messages:
    6
    Likes Received:
    2
    #3
    xlsalvolx likes this.
  4. Eluamous

    Eluamous New Member

    Joined:
    Mar 9, 2017
    Messages:
    11
    Likes Received:
    2
    #4

Share This Page