From 904e45b70e807929a1f9950e47fe55b38b7907e6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 23 Jun 2020 01:11:44 -0300 Subject: Hercules prefer things done this way then, uh? --- npc/config/magic.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'npc/config/magic.txt') 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++) { -- cgit v1.2.3-70-g09d2