Damageable.damage(0) does nothing

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor
    • None
    • Affects Version/s: None

      Calling Damageable.damage(0) doesn't play the damage animation anymore.

      Temporary workaround :

      damageable.damage(0.0000000000000000000001);
      
      //Or
      
      double zeroDamage = 0.0000000000000000000001;
      damageable.damage(zeroDamage);
      damageable.setHealth(player.getHealth() + zeroDamage);
      

            Assignee:
            Unassigned
            Reporter:
            ImAFlyingPancake
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: