Commit ddb52a38 authored by POLYMER's avatar POLYMER

fix

parent 3400c340
......@@ -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)
return c:GetSequence()-tc:GetSequence()<=1 and tc:GetSequence()-c:GetSequence()<=1
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)
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):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,e):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,9 +39,9 @@ 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)
local g=Duel.GetMatchingGroup(cm.cofilter,tc:GetControler(),LOCATION_MZONE,0,nil,tc,e)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local tg1=g:FilterSelect(tp,cm.cfilter,tp,0,LOCATION_MZONE,2,2,tc,e,1-tp)
local tg1=g:Select(tp,2,2,tc)
tg:Merge(tg1)
Duel.SetTargetCard(tg)
if e:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)<Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE) then
......
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