Bug: HasPotionEffect condition no longer works (1.15.2)

Discussion in 'Bug Reports' started by Tankdest22, Mar 25, 2020.

  1. Tankdest22

    Tankdest22 Active Member
    Supporter Moderator Quality Assurance

    Joined:
    Jul 20, 2015
    Messages:
    218
    Likes Received:
    41
    Enter a brief description of what is broken HasPotionEffect condition no longer works (1.15.2)

    What version of Minecraft are you using? 1.14

    What server jar are you using? Paper Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? Development Build 3264

    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!
    As of this build the haspotioneffect condition always returns true regardless of what value I set it at. And it will constantly apply the potion effect. This issue has broken alot of mechanics that I use for bosses and armors.

    Example Configurations
    AntiWitherPants:
    Id: diamond_leggings
    Display: '&6Anti Wither Pants'
    Skills:
    - skill{s=RemoveWither} @self ~onTimer:10
    Attributes:
    Legs:
    Health: 5
    Armor: 6
    ArmorToughness: 3
    Enchantments:
    - PROTECTION_EXPLOSIONS:9
    - PROTECTION_ENVIRONMENTAL:7
    - MENDING:1
    - DURABILITY:9

    RemoveWither:
    Conditions:
    - haspotioneffect{type=WITHER;l=0to200;d=0to9999999} true
    Skills:
    - heal{a=1} @Self
    - potion{t=WITHER;d=0;l=0;overwrite=true} @Self

    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] Checking if target has PotionEffect type = WITHER, level = RangedDouble{0.0 to 200.0}, d = RangedDouble{0.0 to 9999999.0}
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] Returning true
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] [35m|----- [36m! Skill usable![0m
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] [35m~----------- [36mExecuting MetaSkill (et: 1) -> RemoveWither[0m
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] [35m+--- [36mRunning Skill RemoveWither Async from MetaSkillMechanic[0m
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] Checking if target has PotionEffect type = WITHER, level = RangedDouble{0.0 to 200.0}, d = RangedDouble{0.0 to 9999999.0}
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] Returning true
    [16:02:19] [Craft Scheduler Thread - 36/INFO]: [MythicMobs] [35m|----- [36m! Skill usable![0m
     
    #1
    xlsalvolx likes this.
  2. xlsalvolx

    xlsalvolx Member
    Premium Supporter Supporter Contest Winner

    Joined:
    Jan 9, 2017
    Messages:
    121
    Likes Received:
    14
    having this too
     
    #2

Share This Page