Update HasLearnedSpell authored by Taiyou06's avatar Taiyou06
## Description
Whether the target player has learned the given spell.
Whether the target player has learned the given spell. Optionally, the player's level in that spell can be matched against a [ranged int](/../../../MythicMobs/-/wikis/Skills/Conditions#ranged-numbers).
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|---------------------------------------------------|-------------|
| id | spell, s | The spell to check against | `FIREBALL` |
| Attribute | Aliases | Description | Default |
|-----------|-----------|---------------------------------------------------------------------------------------------------|-------------|
| id | spell, s | The spell to check against. Supports placeholders. | `FIREBALL` |
| level | l | (Optional) Ranged int the player's level in the spell must match. Examples: `3`, `>=2`, `1to3`. | (any level) |
## Examples
......@@ -15,6 +16,13 @@ Skills:
- teachSpell{spell=MagicMissile} @trigger ?!hasLearnedSpell{spell=MagicMissile}
```
Only run a procedural buff if the player has Fireball at level 3 or higher:
```yaml
Skills:
- skill{s=FireMastery} @self ?hasLearnedSpell{spell=Fireball;level=>=3}
```
## Aliases
- [x] hasSpell