Commit 192efff0 authored by POLYMER's avatar POLYMER

fix

parent ddb52a38
......@@ -25,12 +25,12 @@ end
function cm.cfilter(c,e,p)
return c:IsControler(p) and c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5 and c:IsCanBeEffectTarget(e)
end
function cm.cofilter(c,tc,e)
return c:GetSequence()-tc:GetSequence()<=1 and tc:GetSequence()-c:GetSequence()<=1 and c:GetSequence()<5 and c:IsCanBeEffectTarget(e)
function cm.cofilter(c,tc)
return c:GetSequence()-tc:GetSequence()<=1 and tc:GetSequence()-c:GetSequence()<=1 and c:GetSequence()<5 --and c:IsCanBeEffectTarget(e)
end
function cm.disfilter(c,e)
local p=c:GetControler()
return c:GetSequence()<5 and c:IsCanBeEffectTarget(e) and Duel.GetMatchingGroup(cm.cofilter,p,LOCATION_MZONE,0,nil,c,e):Filter(cm.cfilter,nil,e,p):GetCount()>=3
return c:GetSequence()<5 and c:IsCanBeEffectTarget(e) and Duel.GetMatchingGroup(cm.cofilter,p,LOCATION_MZONE,0,nil,c):Filter(cm.cfilter,nil,e,p):GetCount()>=3
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end
......@@ -39,7 +39,7 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tg=Duel.SelectMatchingCard(tp,cm.disfilter,tp,0,LOCATION_MZONE,1,1,nil,e)
local tc=tg:GetFirst()
e:SetLabelObject(tc)
local g=Duel.GetMatchingGroup(cm.cofilter,tc:GetControler(),LOCATION_MZONE,0,nil,tc,e)
local g=Duel.GetMatchingGroup(cm.cofilter,tc:GetControler(),LOCATION_MZONE,0,nil,tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local tg1=g:Select(tp,2,2,tc)
tg:Merge(tg1)
......
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