summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-13 23:12:39 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-13 23:12:39 -0300
commit1b3c05034f011c93f152f443b60e3717b81df035 (patch)
tree85ca5d0c8a49beeca3e90d2cc5e11c53a036e5d6
parent06b571e934dc7c71cf2331915f12b4454cd42328 (diff)
downloadserverdata-1b3c05034f011c93f152f443b60e3717b81df035.tar.gz
serverdata-1b3c05034f011c93f152f443b60e3717b81df035.tar.bz2
serverdata-1b3c05034f011c93f152f443b60e3717b81df035.tar.xz
serverdata-1b3c05034f011c93f152f443b60e3717b81df035.zip
Fix the most important bug, you cannot use the charges if no sulphur.
-rw-r--r--npc/magic/level1-flare-dart.txt5
1 files changed, 3 insertions, 2 deletions
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);