Commit b771748d authored by 花桃白音's avatar 花桃白音

fix #18700208

parent 3fe6927c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
local cm,m,o=GetID() local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddXyzProcedure(c,nil,8,2,cm.ovfilter,aux.Stringid(m,0),2,cm.xyzop) aux.AddXyzProcedure(c,nil,8,2,cm.ovfilter,aux.Stringid(m,0),1,cm.xyzop)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1)) e1:SetDescription(aux.Stringid(m,1))
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
...@@ -85,14 +85,15 @@ function cm.xyzop(e,tp,chk) ...@@ -85,14 +85,15 @@ function cm.xyzop(e,tp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,cm.cfilter,1,1,REASON_COST+REASON_DISCARD,nil) Duel.DiscardHand(tp,cm.cfilter,1,1,REASON_COST+REASON_DISCARD,nil)
end end
function cm.desfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER)
end
function cm.ovfilter(c) function cm.ovfilter(c)
local g=Duel.GetMatchingGroup(cm.desfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.desfilter,tp,LOCATION_MZONE,0,nil)
local tg=g:GetMaxGroup(Card.GetDefense) local tg=g:GetMaxGroup(Card.GetDefense)
return tg:IsContains(c) return tg:IsContains(c)
end end
function cm.desfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER)
end
-- --
function cm.thfilter(c) function cm.thfilter(c)
return not c:IsPublic() return not c:IsPublic()
......
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