Commit dd9dd351 authored by Tachibana's avatar Tachibana

eme

parent f4a57855
Pipeline #9014 passed with stages
in 38 minutes and 15 seconds
...@@ -18,7 +18,7 @@ function c4210035.initial_effect(c) ...@@ -18,7 +18,7 @@ function c4210035.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(4210035,1)) e2:SetDescription(aux.Stringid(4210035,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c4210035.condition) e2:SetCondition(c4210035.condition)
......
...@@ -18,7 +18,7 @@ function c4210036.initial_effect(c) ...@@ -18,7 +18,7 @@ function c4210036.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(4210036,1)) e2:SetDescription(aux.Stringid(4210036,1))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c4210036.condition) e2:SetCondition(c4210036.condition)
...@@ -118,9 +118,6 @@ end ...@@ -118,9 +118,6 @@ end
function c4210036.condition(e,tp,eg,ep,ev,re,r,rp) function c4210036.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c4210036.tgfilter(c,e,tp)
return c:IsSetCard(0xa2f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c4210036.cdfilter(c) function c4210036.cdfilter(c)
return c:IsSetCard(0xa2f) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0xa2f) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
...@@ -132,9 +129,9 @@ function c4210036.cdrmfilter(c) ...@@ -132,9 +129,9 @@ function c4210036.cdrmfilter(c)
end end
function c4210036.target(e,tp,eg,ep,ev,re,r,rp,chk) function c4210036.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c4210036.tgfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)end and Duel.IsExistingMatchingCard(c4210036.cdfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c4210036.operation(e,tp,eg,ep,ev,re,r,rp) function c4210036.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
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