Commit 8b7448c8 authored by POLYMER's avatar POLYMER

fix

parent edd7e539
...@@ -82,7 +82,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp)
for k,v in pairs(copyt) do for k,v in pairs(copyt) do
if k and v then exg:AddCard(k) end if k and v then exg:AddCard(k) end
end end
local cd=c89390009.cd or 3 local cd=3
if c89390009 then cd=c89390009.cd end
if exg:GetClassCount(Card.GetOriginalCode)>=cd and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if exg:GetClassCount(Card.GetOriginalCode)>=cd and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
......
...@@ -82,7 +82,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp)
for k,v in pairs(copyt) do for k,v in pairs(copyt) do
if k and v then exg:AddCard(k) end if k and v then exg:AddCard(k) end
end end
local cd=c89390009.cd or 3 local cd=3
if c89390009 then cd=c89390009.cd end
if exg:GetClassCount(Card.GetOriginalCode)>=cd and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if exg:GetClassCount(Card.GetOriginalCode)>=cd and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,2,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,2,nil)
......
...@@ -84,7 +84,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp)
for k,v in pairs(copyt) do for k,v in pairs(copyt) do
if k and v then exg:AddCard(k) end if k and v then exg:AddCard(k) end
end end
local cd=c89390009.cd or 3 local cd=3
if c89390009 then cd=c89390009.cd end
if exg:GetClassCount(Card.GetOriginalCode)>=cd then if exg:GetClassCount(Card.GetOriginalCode)>=cd then
local mg2=Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_DECK,0,nil,tp,exg) local mg2=Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_DECK,0,nil,tp,exg)
mg1:Merge(mg2) mg1:Merge(mg2)
...@@ -155,7 +156,8 @@ function cm.ckecktarget(e,tp) ...@@ -155,7 +156,8 @@ function cm.ckecktarget(e,tp)
for k,v in pairs(copyt) do for k,v in pairs(copyt) do
if k and v then exg:AddCard(k) end if k and v then exg:AddCard(k) end
end end
local cd=c89390009.cd or 3 local cd=3
if c89390009 then cd=c89390009.cd end
if exg:GetClassCount(Card.GetOriginalCode)>=cd then if exg:GetClassCount(Card.GetOriginalCode)>=cd then
local mg2=Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_DECK,0,nil,tp,exg) local mg2=Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_DECK,0,nil,tp,exg)
mg1:Merge(mg2) mg1:Merge(mg2)
......
...@@ -82,7 +82,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,8 @@ function cm.sretop(e,tp,eg,ep,ev,re,r,rp)
for k,v in pairs(copyt) do for k,v in pairs(copyt) do
if k and v then exg:AddCard(k) end if k and v then exg:AddCard(k) end
end end
local cd=c89390009.cd or 3 local cd=3
if c89390009 then cd=c89390009.cd end
if exg:GetClassCount(Card.GetOriginalCode)>=cd and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if exg:GetClassCount(Card.GetOriginalCode)>=cd and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_HAND,LOCATION_HAND,nil,tp) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_HAND,LOCATION_HAND,nil,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -48,7 +48,7 @@ function c9910070.splimit(e,se,sp,st) ...@@ -48,7 +48,7 @@ function c9910070.splimit(e,se,sp,st)
return se:IsHasType(EFFECT_TYPE_ACTIONS) return se:IsHasType(EFFECT_TYPE_ACTIONS)
end end
function c9910070.sprfilter1(c,sc) function c9910070.sprfilter1(c,sc)
return c:IsReleasable() and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL) return c:IsReleasable(REASON_SPSUMMON) and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
and c:IsFusionAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) and c:IsFusionAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK)
end end
function c9910070.sprfilter2(g,tp,sc) function c9910070.sprfilter2(g,tp,sc)
...@@ -67,7 +67,7 @@ function c9910070.sprop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -67,7 +67,7 @@ function c9910070.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroup(tp,c9910070.sprfilter2,false,2,2,tp,c) local sg=g:SelectSubGroup(tp,c9910070.sprfilter2,false,2,2,tp,c)
c:SetMaterial(sg) c:SetMaterial(sg)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_SPSUMMON+REASON_MATERIAL)
end end
function c9910070.cfilter(c) function c9910070.cfilter(c)
return c:IsFaceup() and (c:IsLevelAbove(6) or c:IsRankAbove(6)) return c:IsFaceup() and (c:IsLevelAbove(6) or c:IsRankAbove(6))
......
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