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)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(4210035,1))
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:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c4210035.condition)
......@@ -62,7 +62,7 @@ function c4210035.spcon(e,c)
if c==nil then return true end
local mg1=Duel.GetMatchingGroup(c4210035.relfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,e:GetHandler())
local mg2=Duel.GetMatchingGroup(c4210035.repfilter,tp,LOCATION_REMOVED,0,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.IsExistingMatchingCard(c4210035.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,e,tp,mg1,mg2,ft)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210028)
and (e:GetHandler():IsLocation(LOCATION_HAND) or (e:GetHandler():IsLocation(LOCATION_GRAVE) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024)))
......@@ -103,7 +103,7 @@ function c4210035.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local mat2=mg:SelectWithSumEqual(tp,Card.GetLevel,6,0,99,tc)
mat:Merge(mat2)
end
end
local rm= mat:Filter(Card.IsLocation,tp,LOCATION_REMOVED)
Duel.SendtoDeck(rm,nil,0,REASON_COST)
Duel.Release(mat,REASON_COST+REASON_RELEASE)
......@@ -150,7 +150,7 @@ function c4210035.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local cd = Duel.SelectMatchingCard(tp,c4210035.cdfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SendtoHand(cd,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,cd)
Duel.ConfirmCards(1-tp,cd)
end
end
end
......
......@@ -18,7 +18,7 @@ function c4210036.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(4210036,1))
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:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c4210036.condition)
......@@ -62,7 +62,7 @@ function c4210036.spcon(e,c)
if c==nil then return true end
local mg1=Duel.GetMatchingGroup(c4210036.relfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,e:GetHandler())
local mg2=Duel.GetMatchingGroup(c4210036.repfilter,tp,LOCATION_REMOVED,0,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.IsExistingMatchingCard(c4210036.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,e,tp,mg1,mg2,ft)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210028)
and (e:GetHandler():IsLocation(LOCATION_HAND) or (e:GetHandler():IsLocation(LOCATION_GRAVE) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024)))
......@@ -103,7 +103,7 @@ function c4210036.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local mat2=mg:SelectWithSumEqual(tp,Card.GetLevel,6,0,99,tc)
mat:Merge(mat2)
end
end
local rm= mat:Filter(Card.IsLocation,tp,LOCATION_REMOVED)
Duel.SendtoDeck(rm,nil,0,REASON_COST)
Duel.Release(mat,REASON_COST+REASON_RELEASE)
......@@ -118,9 +118,6 @@ end
function c4210036.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end
function c4210036.tgfilter(c,e,tp)
return c:IsSetCard(0xa2f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c4210036.cdfilter(c)
return c:IsSetCard(0xa2f) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
......@@ -132,9 +129,9 @@ function c4210036.cdrmfilter(c)
end
function c4210036.target(e,tp,eg,ep,ev,re,r,rp,chk)
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
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
and Duel.IsExistingMatchingCard(c4210036.cdfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c4210036.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......@@ -149,7 +146,7 @@ function c4210036.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(showcard,0x1420042a,e,REASON_COST,tp,0,0)
Duel.ShuffleHand(tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local cd = Duel.SelectMatchingCard(tp,c4210036.cdrmfilter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
local cd = Duel.SelectMatchingCard(tp,c4210036.cdrmfilter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.SendtoHand(cd,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,cd)
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