Update consume authored by Lxlp's avatar Lxlp
Mechanic: Consume ## Description
=================
Damages each entity targeted for the given amount, and heals the casting Damages each entity targeted for the given amount, and heals the casting
mob for each entity that takes damage this way. mob for each entity that takes damage this way.
Attributes ## Attributes
----------
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|------------------|---------|---------------------------------------|---------| |-----------|-----------|----------------------------------------------------------------------|---------|
| damage | d,dmg | The amount of damage to deal | 1 | | damage | d,dmg | The amount of damage to deal | 1 |
| heal | h | The amount of healing per mob damaged | None | | heal | h | The amount of healing per mob damaged | 1 |
| preventknockback | pkb, pk | Whether or not to prevent knockback | false | > This mechanic inherits every *inheritable* attribute of the [Damage](/Skills/Mechanics/Damage) mechanic
| preventimmunity | pi | Whether or not to ignore immunities | false |
| ignorearmor | i,ia | Whether or not to ignore target armor | false |
*"preventknockback" and "preventimmunity" were added in version 2.3*
Examples
--------
## Examples
Would consume all nearby zombies, healing the boss for 20 hp for each Would consume all nearby zombies, healing the boss for 20 hp for each
zombie killed. zombie killed.
```yaml
Skills: Skills:
- consume{d=1000;h=20} @MobsInRadius{type=ZOMBIE;r=20} - consume{d=1000;h=20} @MobsInRadius{type=ZOMBIE;r=20}
```
\ No newline at end of file