local nX = TagActor:getX()--X坐标
local nY = TagActor:getY()--Y坐标
local nRange = 2--范围
local obj_tbl = TagActor:getMapRageActor(nX, nY, nRange)--取2格范围对像
for i = 1, #obj_tbl do--循环列表内的对像
local objActor = obj_tbl[i]
if objActor ~= nil then
local sName = objActor:getCharName()
if MagicID == 63 then
objActor:setBuff(10)
--print("对像名称:"..sName)
end