Commit dec6341e authored by TanakaKotoha's avatar TanakaKotoha

Black Square

parent 03980c5f
...@@ -21,7 +21,9 @@ function c75646956.initial_effect(c) ...@@ -21,7 +21,9 @@ function c75646956.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_NEGATED) e2:SetCode(EVENT_SUMMON_NEGATED)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,5646956) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,5646956)
e2:SetCondition(c75646956.thcon)
e2:SetTarget(c75646956.thtg) e2:SetTarget(c75646956.thtg)
e2:SetOperation(c75646956.thop) e2:SetOperation(c75646956.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -67,6 +69,9 @@ function c75646956.filter(c) ...@@ -67,6 +69,9 @@ function c75646956.filter(c)
return c:IsSetCard(0xa2c2) and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0xa2c2) and c:IsType(TYPE_SPELL+TYPE_TRAP)
and c:IsAbleToHand() and c:IsAbleToHand()
end end
function c75646956.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSetCard,1,nil,0xa2c2)
end
function c75646956.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c75646956.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c75646956.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c75646956.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
......
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