|
|
## Description
|
|
|
Deals damage equal to a percent of the player's max health, where 1 is
|
|
|
100%. Has the same options as the [Damage](skills/mechanics/damage) mechanic.
|
|
|
100%. Inherits every attribute of the [Damage](skills/mechanics/damage) mechanic.
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
| percent | p | The percentage to damage the target | 0.1 |
|
|
|
| current | c,ch |Whether it calculates the percent from your original or current health| false |
|
|
|
| ignoreArmor | ia | Whether or not to ignore armor | false |
|
|
|
| preventknockback | pkb, pk | Whether or not to prevent knockback | false |
|
|
|
| preventimmunity | pi | Whether or not to ignore immunities | false |
|
|
|
| currentHealth | current, c, ch |Whether it calculates the percent from your original or current health| false |
|
|
|
> This mechanic inherits every attribute of the [damage](skills/mechanics/damage) mechanic
|
|
|
>> The `amount` attribute is ignored
|
|
|
|
|
|
|
|
|
## Examples
|
... | ... | @@ -18,4 +17,9 @@ Hurts the target for half (50%) of its max health. |
|
|
```yaml
|
|
|
Skills:
|
|
|
- damagepercent{percent=0.5}
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
- [x] damagepercent
|
|
|
- [x] percentdamage |
|
|
\ No newline at end of file |