local jisuan = s.share.getVal_G(499)
local nX = s.share.getVal_G(498)--X坐标
local nY = s.share.getVal_G(497)--Y坐标
local nRange = 4--范围
local obj_tbl = Actor:getMapRageActor(nX, nY, nRange)--取2格范围对像
for i = 1, #obj_tbl do--循环范围内的对像
local objActor = obj_tbl[i]
if objActor ~= nil then
if objActor:getRace() == 66 and jisuan >= 178 then
masterActor:runScript("@范围属性增加1");
end
if objActor:getRace() == 0 and jisuan >= 178 then
objActor:runScript("@范围属性增加2");
end
end
end