summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
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++) {