summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/main.txt3
-rw-r--r--npc/magic/config.txt8
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));