|
|
**Description:** checks the cause of the damage taken
|
|
|
## Description
|
|
|
Checks the cause of the damage the entity took, if the skilltree originated from a [onDamaged Trigger](/Skills/Triggers#ondamaged) or an [onDamaged Aura](/skills/mechanics/ondamaged).
|
|
|
A list of valid damage causes can be found in the [Spigot DamageCause javadoc](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html).
|
|
|
|
|
|
---
|
|
|
|
|
|
**Attributes:**
|
|
|
## Attributes
|
|
|
|
|
|
| Attribute | Alias | Description |
|
|
|
| ---------- | ----- | ---------------------------- |
|
|
|
| cause | None | the cause type of the damage |
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-----------|-----------|----------------------------------------------------------------|---------------|
|
|
|
| damagecause | cause, c | The damage cause to match | ENTITY_ATTACK |
|
|
|
|
|
|
---
|
|
|
|
|
|
**Examples:**
|
|
|
|
|
|
```
|
|
|
Conditions:
|
|
|
- damagecause{cause=ENTITY_ATTACK} true
|
|
|
```
|
|
|
|
|
|
List of damage causes: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
|
|
|
|
|
|
---
|
|
|
|
|
|
**Extra Information:**
|
|
|
|
|
|
- [x] Type: Entity |
|
|
\ No newline at end of file |
|
|
## Examples
|
|
|
```yaml
|
|
|
Conditions:
|
|
|
- damagecause{cause=ENTITY_ATTACK} true
|
|
|
``` |
|
|
\ No newline at end of file |