Commit 2c3f74ad authored by GuGu's avatar GuGu

Update c86379374.lua 不可使用区域检测

parent e5a506a3
Pipeline #21790 passed with stage
in 46 seconds
......@@ -38,8 +38,36 @@ function c86379374.lcheck(g)
end
--
function c86379374.disval(e)
local c=e:GetHandler()
return c:GetLinkedZone(0)
local zone=e:GetHandler():GetLinkedZone(0)
local g=Duel.GetMatchingGroup(tp,nil,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local GetGlobalLocation=function(c)
local p=c:GetControler()
local seq=c:GetSequence()
if c:IsLocation(LOCATION_SZONE) then
if seq==6 then seq=0 end
if seq==7 then seq=4 end
if seq<=4 then
return 0x0100<<(16*p+seq)
end
elseif c:IsLocation(LOCATION_MZONE) then
if seq==5 then
return (0x0001<<(16*p+5))|(0x0001<<(16*(1-p)+6))
elseif seq==6 then
return (0x0001<<(16*p+6))|(0x0001<<(16*(1-p)+5))
else
return 0x0001<<(16*p+seq)
end
end
return 0
end
g:ForEach(function(c)
local czone=GetGlobalLocation(c)
if czone&zone~=0 then
zone=zone&(~czone)
end
end)
return zone
end
--
function c86379374.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment