From 7f3ee7b17d27b2644e14728289c93c557608dd29 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Apr 2021 13:18:45 -0300 Subject: Fix a couple typos --- npc/magic/config.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/magic') 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)); -- cgit v1.2.3-70-g09d2