diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-13 23:10:16 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-13 23:10:16 -0300 |
commit | 06b571e934dc7c71cf2331915f12b4454cd42328 (patch) | |
tree | 67f9a6ce850286ce9aac85a694e9199c9ba02eb3 /npc/magic | |
parent | ec65ed6ee8874ab261c5256060af2a0935d31ef6 (diff) | |
download | serverdata-06b571e934dc7c71cf2331915f12b4454cd42328.tar.gz serverdata-06b571e934dc7c71cf2331915f12b4454cd42328.tar.bz2 serverdata-06b571e934dc7c71cf2331915f12b4454cd42328.tar.xz serverdata-06b571e934dc7c71cf2331915f12b4454cd42328.zip |
Charges!!
Diffstat (limited to 'npc/magic')
-rw-r--r-- | npc/magic/level1-flare-dart.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/magic/level1-flare-dart.txt b/npc/magic/level1-flare-dart.txt index ec1d8134..c8f0f7e3 100644 --- a/npc/magic/level1-flare-dart.txt +++ b/npc/magic/level1-flare-dart.txt @@ -5,7 +5,13 @@ // School: War 1 function script SK_Flar { - .@PW=70+(10*@skillLv); + // Charge code, item check is in skill_db.conf + if (!@MCHARGE_FLARE) { + delitem SulphurPowder, 1; + @MCHARGE_FLARE = 2+getskilllv(SKILL_MAGIC_WAR); + } + // Effective magic code + .@PW=70+(5*@skillLv); .@dmg=AdjustSpellpower(.@PW); harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Fire); GetManaExp(@skillId, 1); |