.setDamage(), pre Mitigation or after?

Discussion in 'Plugin Development' started by CreeperShift, Apr 7, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    CreeperShift

    Let's assume I hit another player with a sword and I set the damage to 20 using setDamage(20); in the event ,

    now the other player is wearing a full diamond armor, will the 20 damage be reduced? Or will it take whatever damage is set without accounting for Damage Mitigation?
     
  2. Offline

    Nitnelave

    In what event?
     
  3. Offline

    CreeperShift

    EntityDamageByEntityEvent

    obviously :p
     
  4. Offline

    Nitnelave

    I might be wrong, but I seem to remember that it is the damage after applying the armor resistance. The best way is to check, for example try getting hit with/without armor and compare the values.
     
  5. Offline

    CreeperShift

    I only have one account and was hoping to get around that, but I guess online-mode=false here I come :p

    Thanks tho :)
     
Thread Status:
Not open for further replies.

Share This Page