From f6eb33c54373631c9e01ba0b68d6d95a6f277567 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 15 Apr 2020 00:29:28 -0300 Subject: Make Old Wizard Astral Soul teaching a bit more stable. By only deleting reagents when you're about to learn. This implies checking items twice, I do not trust TMWA to follow standard behaviors. --- world/map/npc/013-2/wizard.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'world/map/npc/013-2') diff --git a/world/map/npc/013-2/wizard.txt b/world/map/npc/013-2/wizard.txt index edd7a768..f4e81a72 100644 --- a/world/map/npc/013-2/wizard.txt +++ b/world/map/npc/013-2/wizard.txt @@ -102,8 +102,6 @@ L_AstralSoul: L_Next: if (countitem("Pearl") < 1 || countitem("Acorn") < 100) goto L_NotEnough; - delitem "Pearl", 1; - delitem "Acorn", 100; mes "[Old Wizard]"; mes "\"Okay, listen:\""; next; @@ -113,6 +111,9 @@ L_Next: next; mes "The old wizard mumbles some invocations"; next; + if (countitem("Pearl") < 1 || countitem("Acorn") < 100) goto L_NotEnough; + delitem "Pearl", 1; + delitem "Acorn", 100; set @SUP_lvl, 1; set @SUP_id, SKILL_ASTRAL_SOUL; set @SUP_name$, "Astral Soul"; -- cgit v1.2.3-60-g2f50