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.
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| id | spell, s | The spell to check against | FIREBALL <!--type:Spell--> |
|-----------|-----------|---------------------------------------------------|-------------|
| id | spell, s | The spell to check against | `FIREBALL` |
## Examples
A "spell teacher" mob that only teaches MagicMissile to players who don't already know it:
```yaml
LearnMagicMissile:
TargetConditions:
- hasLearnedSpell{spell=MagicMissile} false
- hascurrency{a=500}
Skills:
- teachspell{s=MagicMissile;l=1}
- currencytake{amount=500}
- message{m="Eheh, thanks for you patronage!"}
- teachSpell{spell=MagicMissile} @trigger ?!hasLearnedSpell{spell=MagicMissile}
```
......
......