Commit ee3a149e authored by wyykak's avatar wyykak

fix 86379658

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 43f70886
......@@ -232,6 +232,33 @@ function c86379658.rmtop2(e,tp,eg,ep,ev,re,r,rp)
end
--
function c86379658.disval(e)
local c=e:GetHandler()
return c:GetColumnZone(LOCATION_ONFIELD,0)
local zone=e:GetHandler():GetColumnZone(LOCATION_ONFIELD,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
end
g:ForEach(function(c)
local czone=GetGlobalLocation(c)
if czone&zone~=0 then
zone=zone&(~czone)
end
end)
return zone
end
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