summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-23 01:11:44 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-23 01:11:44 -0300
commit904e45b70e807929a1f9950e47fe55b38b7907e6 (patch)
tree32531be18cce30dbd877ecba1956332ca8f06deb /npc/config
parentc287943f22b294bb074411ae3e3d04ce02726841 (diff)
downloadserverdata-904e45b70e807929a1f9950e47fe55b38b7907e6.tar.gz
serverdata-904e45b70e807929a1f9950e47fe55b38b7907e6.tar.bz2
serverdata-904e45b70e807929a1f9950e47fe55b38b7907e6.tar.xz
serverdata-904e45b70e807929a1f9950e47fe55b38b7907e6.zip
Hercules prefer things done this way then, uh?
Diffstat (limited to 'npc/config')
-rw-r--r--npc/config/magic.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 9792e3394..bc537cad6 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -126,14 +126,7 @@ function script areaharm {
.@f$=getarg(5, "filter_hostile");
.@b=getarg(6, BL_PC | BL_MOB | BL_MER | BL_HOM);
- // FIXME: Retrieve from .@t not from "0"/caster
- //getmapxy(.@m$, .@x, .@y, 0);
- // Ideally we would have @skillTargetX/Y and not use getmap() but meh
- .@m$=getmap();
- getunitdata(.@t, UDT_MAPIDXY, .@loc);
- .@x=.@loc[1];
- .@y=.@loc[2];
- //debugmes("Loc %s (%d, %d) - Real loc %s", .@m$, .@x, .@y, str(.@loc[0]));
+ getmapxy(.@m$, .@x, .@y, getunittype(.@t), .@t);
.@c=getunits(.@b, .@mbs, false, .@m$, .@x-.@r, .@y-.@r, .@x+.@r, .@y+.@r);
for (.@i = 0; .@i < .@c; .@i++) {