Resolved Bug: NPE: healpercent

Discussion in 'Bug Reports' started by Chalkie, Nov 11, 2017.

  1. Chalkie

    Chalkie New Member
    New

    Joined:
    Aug 24, 2015
    Messages:
    4
    Likes Received:
    0
    Enter a brief description of what is broken NPE: healpercent

    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? v4.3.2

    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 am getting an NPE when using the healpercent mechanic in a unusual way.

    Because I have other software that adds defence, block, evade etc to players I wanted to have a skill that was pure HP removal rather then damage (damage, % damage don't work as the block, defence etc is factored into the final damage)

    The healpercent works great until there is less HP then what you have put as the healpercent's ammount. (example healpercent is set to 10% and they only have 5% left)

    I suggest a new mechanic (or edit this one) that is called healthremoval that gives the option to kill the player if the current HP % is less than the healpercent % amount or it just doesn't effect the player)

    Here is the NPE: https://pastebin.com/e8s8dASR

    Thanks for your time and hard work!

    Example Configurations
    healpercent{m=-0.10}

    Proposed new mechanic.

    healthremovalpercent{m=0.10,kill=true}
     
    #1
  2. Chalkie

    Chalkie New Member
    New

    Joined:
    Aug 24, 2015
    Messages:
    4
    Likes Received:
    0
    It's been several months, could I please get an update on this issue. Thanks.
     
    #2
  3. xikage

    xikage Administrator
    Administrator Developer Supporter

    Joined:
    Jul 18, 2015
    Messages:
    580
    Likes Received:
    206
    Fixed in 4.4.0
     
    #3

Share This Page