Commit f660e7f6 authored by GuGu's avatar GuGu

Update c74560004.lua

parent aac968c8
Pipeline #32663 passed with stage
in 24 seconds
...@@ -56,12 +56,20 @@ function cCardno.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,12 +56,20 @@ function cCardno.op(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
if tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(cCardno.filter,tp,LOCATION_DECK,0,1,nil,e,tp) then if tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(cCardno.filter,tp,LOCATION_DECK,0,1,nil,e,tp) then
local ssg=Duel.SelectMatchingCard(tp,cCardno.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local ssg=Duel.SelectMatchingCard(tp,cCardno.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SendtoHand(ssg,tp,REASON_EFFECT) if ssg:GetCount()>0 then
Duel.ConfirmCards(1-tp,ssg) Duel.SendtoHand(ssg,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,ssg)
Duel.ShuffleHand(tp)
Duel.ShuffleDeck(tp)
end
elseif (tc:IsType(TYPE_SPELL) or tc:IsType(TYPE_TRAP)) and Duel.IsExistingMatchingCard(cCardno.filter2,tp,LOCATION_DECK,0,1,nil) then elseif (tc:IsType(TYPE_SPELL) or tc:IsType(TYPE_TRAP)) and Duel.IsExistingMatchingCard(cCardno.filter2,tp,LOCATION_DECK,0,1,nil) then
local ssg=Duel.SelectMatchingCard(tp,cCardno.filter2,tp,LOCATION_DECK,0,1,1,nil) local ssg=Duel.SelectMatchingCard(tp,cCardno.filter2,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(ssg,tp,REASON_EFFECT) if ssg:GetCount()>0 then
Duel.ConfirmCards(1-tp,ssg) Duel.SendtoHand(ssg,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,ssg)
Duel.ShuffleHand(tp)
Duel.ShuffleDeck(tp)
end
end end
end end
function cCardno.retop(e,tp,eg,ep,ev,re,r,rp) function cCardno.retop(e,tp,eg,ep,ev,re,r,rp)
......
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