From 1b3c05034f011c93f152f443b60e3717b81df035 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 23:12:39 -0300 Subject: Fix the most important bug, you cannot use the charges if no sulphur. --- npc/magic/level1-flare-dart.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/magic') diff --git a/npc/magic/level1-flare-dart.txt b/npc/magic/level1-flare-dart.txt index c8f0f7e3..d59aef2f 100644 --- a/npc/magic/level1-flare-dart.txt +++ b/npc/magic/level1-flare-dart.txt @@ -5,11 +5,12 @@ // School: War 1 function script SK_Flar { - // Charge code, item check is in skill_db.conf - if (!@MCHARGE_FLARE) { + // Charge code, item check is in skill_db.conf (FIXME) + if (@MCHARGE_FLARE < 1) { delitem SulphurPowder, 1; @MCHARGE_FLARE = 2+getskilllv(SKILL_MAGIC_WAR); } + @MCHARGE_FLARE-=1; // Effective magic code .@PW=70+(5*@skillLv); .@dmg=AdjustSpellpower(.@PW); -- cgit v1.2.3-60-g2f50