summaryrefslogtreecommitdiff
path: root/npc/magic/config.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/config.txt')
-rw-r--r--npc/magic/config.txt8
1 files changed, 4 insertions, 4 deletions
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));