(Splash) potion damage/healing events

Discussion in 'Bukkit Preview' started by Zeerix, Jan 17, 2012.

  1. Offline

    Zeerix

    Implemented the following for potions, splash potions and potion effects:
    • Drinking a Potion of Healing causes an EntityRegainHealthEvent with RegainReason.MAGIC
    • Being affected by a Splash Potion of Healing causes the same event
    • Being affected by a regeneration effect causes an EntityRegainHealthEvent with RegainReason.MAGIC_REGEN
    And:
    • Drinking a Potion of Harming causes an EntityDamageEvent with DamageCause.MAGIC
    • Being affected by a Splash Potion of Harming causes an EntityDamageByEntityEvent with DamageCause.MAGIC and the thrown potion as projectile
    • Being affected by a poison effect causes an EntityDamageEvent with RegainReason.POISON
     
    jjssman and r3Fuze like this.

Share This Page