Commit 491b892c authored by Huangnan's avatar Huangnan

fix

parent 6b6d4867
Pipeline #39458 failed with stages
in 5 minutes and 57 seconds
...@@ -13,7 +13,7 @@ function cm.initial_effect(c) ...@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.effcon) e1:SetCondition(cm.effcon)
e1:SetValue(cm.efilter) e1:SetValue(cm.efilter)
c:RegisterEffect(e1) --c:RegisterEffect(e1)
end end
function cm.effcon(e) function cm.effcon(e)
return e:GetHandler():GetOverlayCount()>0 return e:GetHandler():GetOverlayCount()>0
......
...@@ -53,7 +53,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(rg) Duel.HintSelection(rg)
local rc=rg:GetFirst() local rc=rg:GetFirst()
if rc:IsAbleToDeck() and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then if rc:IsAbleToDeck() and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
local ds=Duel.SelectOption(tp,aux.Stringid(id,3),aux.Stringid(id,4))==1 local ds=Duel.SelectOption(tp,aux.Stringid(id,4),aux.Stringid(id,3))==1
Duel.SendtoDeck(rc,nil,ds,REASON_EFFECT) Duel.SendtoDeck(rc,nil,ds,REASON_EFFECT)
else else
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
......
...@@ -130,12 +130,16 @@ end ...@@ -130,12 +130,16 @@ end
function cm.spsumfilter2(c,e,tp) function cm.spsumfilter2(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,1-tp) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,1-tp)
end end
function c1041278.gcheck(g,e,tp,b1,b2)
return b1 and g:IsExists(c1041278.spfilter1,1,nil,e,tp,g)
or b2 and g:IsExists(c1041278.spfilter3,2,nil,e,tp)
end
function cm.gcheck(g,e,tp) function cm.gcheck(g,e,tp)
if #g~=2 then return false end if #g~=2 then return false end
local ac=g:GetFirst() local ac=g:GetFirst()
local bc=g:GetNext() local bc=g:GetNext()
return cm.spsumfilter1(ac,e,tp) and cm.spsumfilter2(bc,e,tp) and (g:GetClassCount(Card.GetAttack)==1 or g:GetClassCount(Card.GetDefense)==1) and g:GetClassCount(Card.GetRace)==1 and g:GetClassCount(Card.GetAttribute)~=1 return (cm.spsumfilter1(ac,e,tp) and cm.spsumfilter2(bc,e,tp) and (g:GetClassCount(Card.GetAttack)==1 or g:GetClassCount(Card.GetDefense)==1) and g:GetClassCount(Card.GetRace)~=1 and g:GetClassCount(Card.GetAttribute)==1)
or cm.spsumfilter1(bc,e,tp) and cm.spsumfilter2(ac,e,tp) and (g:GetClassCount(Card.GetAttack)==1 or g:GetClassCount(Card.GetDefense)==1) and g:GetClassCount(Card.GetRace)==1 and g:GetClassCount(Card.GetAttribute)~=1 or (cm.spsumfilter1(bc,e,tp) and cm.spsumfilter2(ac,e,tp) and (g:GetClassCount(Card.GetAttack)==1 or g:GetClassCount(Card.GetDefense)==1) and g:GetClassCount(Card.GetRace)~=1 and g:GetClassCount(Card.GetAttribute)==1)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false 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