Commit 0a489ee2 authored by GuGu's avatar GuGu

Update c74560015.lua

parent 86359b58
Pipeline #29347 passed with stage
in 6 seconds
......@@ -8,7 +8,7 @@ function cCardno.initial_effect(c)
--SpecialSummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Cardno,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_TOGRAVE+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,Cardno)
......@@ -78,7 +78,7 @@ function cCardno.hspfilter2(c)
return c:IsSetCard(0x456) and c:IsAbleToGrave()
end
function cCardno.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cCardno.hspfilter1,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(cCardno.hspfilter2,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_DECK,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cCardno.hspfilter1,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(cCardno.hspfilter2,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_DECK,0,1,nil,POS_FACEDOWN) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
......@@ -91,6 +91,6 @@ function cCardno.hspop(e,tp,eg,ep,ev,re,r,rp)
local g2=Duel.SelectMatchingCard(tp,cCardno.hspfilter2,tp,LOCATION_DECK,0,1,1,nil)
if g2:GetCount()>0 then Duel.SendtoGrave(g2,REASON_EFFECT) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g3=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_DECK,0,1,1,nil)
local g3=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_DECK,0,1,1,nil,POS_FACEDOWN)
if g3:GetCount()>0 then Duel.Remove(g3,POS_FACEDOWN,REASON_EFFECT) end
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