summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level1-make-sulphur.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level1-make-sulphur.txt')
-rw-r--r--world/map/npc/magic/level1-make-sulphur.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/world/map/npc/magic/level1-make-sulphur.txt b/world/map/npc/magic/level1-make-sulphur.txt
index fa728106..4371ba6a 100644
--- a/world/map/npc/magic/level1-make-sulphur.txt
+++ b/world/map/npc/magic/level1-make-sulphur.txt
@@ -9,6 +9,8 @@
sc_start SC_COOLDOWN, 4000, 0, BL_ID;
callfunc "adjust_spellpower";
set Sp, Sp - 4;
+ set CASTS, CASTS + 1;
+ if (CASTS < 0) set CASTS, 1; // overflow
misceffect FX_MAGIC_SULPHUR_CAST, strcharinfo(0);
setarray @create_params[0], (@spellpower/100)+1+(rand(max(1,(800-@spellpower)))/180), 50;
setarray @create_items$[0], "SulphurPowder", "PileOfAsh";