diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-13 13:18:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-13 13:18:45 -0300 |
commit | 7f3ee7b17d27b2644e14728289c93c557608dd29 (patch) | |
tree | 645166d46c21622d84f8fb96f2712db1f4d4683d /npc | |
parent | 017781c297cf6f8d7cb190c320cf6e4adc1fb89a (diff) | |
download | serverdata-7f3ee7b17d27b2644e14728289c93c557608dd29.tar.gz serverdata-7f3ee7b17d27b2644e14728289c93c557608dd29.tar.bz2 serverdata-7f3ee7b17d27b2644e14728289c93c557608dd29.tar.xz serverdata-7f3ee7b17d27b2644e14728289c93c557608dd29.zip |
Fix a couple typos
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/main.txt | 3 | ||||
-rw-r--r-- | npc/magic/config.txt | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index e274bd91..bc6624a7 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -668,8 +668,7 @@ function script iscollision { } function script readparam2 { - readbattleparam(getcharid(3), getarg(0)); - return; + return readbattleparam(getcharid(3), getarg(0)); } function script updateskill { diff --git a/npc/magic/config.txt b/npc/magic/config.txt index 29d7d0d3..229c0521 100644 --- a/npc/magic/config.txt +++ b/npc/magic/config.txt @@ -41,16 +41,16 @@ function script AdjustSpellpower { if (.@type == HARM_MAGI) { .@power+=(readparam2(UDT_INT)/2); .@dmg=rand2( - getunitdata(getcharid(3), UDT_MATKMIN), - getunitdata(getcharid(3), UDT_MATKMAX)); + readbattleparam(getcharid(3), UDT_MATKMIN), + readbattleparam(getcharid(3), UDT_MATKMAX)); // Apply defense //if (.@target) // .@dmg=max(0, .@dmg-getunitdata(.@target, UDT_MDEF)); } else if (.@type == HARM_PHYS) { .@power+=(readparam2(UDT_STR)/2); .@dmg=rand2( - getunitdata(getcharid(3), UDT_ATKMIN), - getunitdata(getcharid(3), UDT_ATKMAX)); + readbattleparam(getcharid(3), UDT_ATKMIN), + readbattleparam(getcharid(3), UDT_ATKMAX)); // Apply defense //if (.@target) // .@dmg=max(0, .@dmg-getunitdata(.@target, UDT_DEF)); |