diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:34:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:34:01 -0300 |
commit | f377bbc7cbce73b49ec708d951780d4efc0ac6f7 (patch) | |
tree | 5d13db357a30650f777b66213aec7f2b13315255 /npc/config | |
parent | 8e8f495d502883349e60dcb633755d9a98e20e5a (diff) | |
download | serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.tar.gz serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.tar.bz2 serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.tar.xz serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.zip |
Remove magic check from SummonMagic
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index ca59dbc82..3ffcbbf72 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -50,13 +50,12 @@ function script MagicCheck { return 1; } -// SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2{, Level Override}} +// SkillID, MobID{, MobPerSkillLevel=2{, Level Override}} function script SummonMagic { .@sk=getarg(0); - .@mp=getarg(1); - .@id=getarg(2); - .@adj=getarg(4,2); - .@lv=getarg(5,getskilllv(.@sk)); + .@id=getarg(1); + .@adj=getarg(2,2); + .@lv=getarg(3,getskilllv(.@sk)); if (.@adj < 1) { debugmes "\033[31mInvalid MobPerSkillLevel for SummonMagic (.@adj): "+.@adj+"\033[0m"; @@ -64,11 +63,6 @@ function script SummonMagic { end; } - // PRE EXECUTION - if (!MagicCheck(.@sk, .@mp, .@amp)) - end; - - // EXECUTION // Apply costs heal 0, 0-.@mp; |