Fix calling restore_sp to drain SP from an affect special node

This also adds an Allow Resist flag to determine whether the target's
Mage Spells or Priest Spells skill can reduce the amount drained.

Thanks to @fosnola for spotting this issue.
This commit is contained in:
2023-01-21 17:26:02 -05:00
parent bad804bc71
commit d7dcf24644
10 changed files with 24 additions and 19 deletions

View File

@@ -820,7 +820,8 @@ health to 0.
can be changed to a maximum of 100 or a minimum of 0.
<dl>
<dt>Extra 1a:</dt><dd>The amount to raise/lower spell points.</dd>
<dt>Extra 1b:</dt><dd>If 0, spell points are raised. Otherwise, theyre lowered.</dd></dd>
<dt>Extra 1b:</dt><dd>If 0, spell points are raised. Otherwise, they're lowered.</dd></dd>
<dt>Extra 1c:</dt><dd>Only used when lowering spell points. If 0, the spell points are lowered by the exact amount specified. If 1, targets with Mage Spells or Priest Spells are allowed to partially resist the effect.</dd>
<dt>Type 84: Affect Experience</dt><dd>Adds/drains experience. If the target is a monster,
this has no effect.