Changes
Page history
Update HasLearnedSpell
authored
Apr 28, 2026
by
Taiyou06
Hide whitespace changes
Inline
Side-by-side
Skills/Conditions/HasLearnedSpell.md
View page @
0f63850d
## 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`
|
| id | spell, s | The spell to check against | FIREBALL
<!--type:Spell-->
|
## Examples
A "spell teacher" mob that only teaches MagicMissile to players who don't already know it:
## Examples
```
yaml
```
yaml
LearnMagicMissile
:
Skills
:
TargetConditions
:
-
teachSpell{spell=MagicMissile} @trigger ?!hasLearnedSpell{spell=MagicMissile}
-
hasLearnedSpell{spell=MagicMissile}
false
```
-
hascurrency{a=500}
Skills
:
-
teachspell{s=MagicMissile;l=1}
## Aliases
-
currencytake{amount=500}
-
[x] hasSpell
-
message{m="Eheh, thanks for you patronage!"}
```
## Aliases
-
[x] hasSpell
\ No newline at end of file