Commit bb989598 authored by nanahira's avatar nanahira

improve

parent c0f8e5f9
...@@ -51,18 +51,13 @@ function cm.MergeCard(g,p,loc,seq) ...@@ -51,18 +51,13 @@ function cm.MergeCard(g,p,loc,seq)
end end
end end
function cm.GetCrossGroup(p,seq) function cm.GetCrossGroup(p,seq)
local g=Duel.GetMatchingGroup(function(c) return c:GetSequence()~=seq and c:GetSequence()<5 end,p,LOCATION_MZONE,0,nil) local zone=(0x1f & ~(0x1 << seq)) | (0x0100 << seq) | (0x01010000 << 4-seq)
cm.MergeCard(g,p,LOCATION_SZONE,seq)
cm.MergeCard(g,1-p,LOCATION_MZONE,4-seq)
cm.MergeCard(g,1-p,LOCATION_SZONE,4-seq)
if seq==1 then if seq==1 then
cm.MergeCard(g,p,LOCATION_MZONE,5) zone=zone | 0x00400020
cm.MergeCard(g,1-p,LOCATION_MZONE,6)
elseif seq==3 then elseif seq==3 then
cm.MergeCard(g,p,LOCATION_MZONE,6) zone=zone | 0x00200040
cm.MergeCard(g,1-p,LOCATION_MZONE,5)
end end
return g return Duel.GetCardsInZone(p,zone)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
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