Update HasLearnedSpell authored by Taiyou06's avatar Taiyou06
## Description ## Description
Whether the target player has learned the given spell Whether the target player has learned the given spell.
## Attributes ## Attributes
| Attribute | Aliases | Description | Default | | 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 ## Examples
A "spell teacher" mob that only teaches MagicMissile to players who don't already know it:
```yaml ```yaml
LearnMagicMissile:
TargetConditions:
- hasLearnedSpell{spell=MagicMissile} false
- hascurrency{a=500}
Skills: Skills:
- teachspell{s=MagicMissile;l=1} - teachSpell{spell=MagicMissile} @trigger ?!hasLearnedSpell{spell=MagicMissile}
- currencytake{amount=500}
- message{m="Eheh, thanks for you patronage!"}
``` ```
... ...
......