Commit a3dd41fb authored by Tachibana's avatar Tachibana

eme

parent 0cc28a24
Pipeline #8580 passed with stages
in 43 minutes and 23 seconds
......@@ -32,8 +32,8 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) and Duel.IsPlayerCanDiscardDeckAsCost(tp,3) end
Duel.DiscardDeck(tp,3,REASON_COST)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) and Duel.IsPlayerCanDiscardDeckAsCost(tp,2) end
Duel.DiscardDeck(tp,2,REASON_COST)
local og=Duel.GetOperatedGroup()
local num=og:FilterCount(Card.IsSetCard,nil,0xcc5)
e:SetLabel(num)
......@@ -63,7 +63,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler())
Duel.SendtoDeck(g,2,0,REASON_COST)
Duel.SendtoDeck(g,nil,0,REASON_COST)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -121,7 +121,7 @@ function c21520099.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c,og)
Duel.SetSelectedCard(msg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
Auxiliary.GCheckAdditional=Auxiliary.TuneMagicianCheckAdditionalX(EFFECT_TUNE_MAGICIAN_X)
local sg=mg:SelectSubGroup(tp,c21520099.sprgoal,cancel,2,99,tp,c)
local sg=mg:SelectSubGroup(tp,c21520099.sprgoal,cancel,2,255,tp,c)
Auxiliary.GCheckAdditional=nil
if sg then
sg:KeepAlive()
......@@ -167,6 +167,10 @@ function c21520099.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,re:GetHandler():GetControler(),21520099)
if Duel.NegateEffect(ev) then
rc:CancelToGrave()
local og=rc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,rc)
end
end
......
--赛须眉·公孙玥
--赛须眉·公孙玥
function c23000309.initial_effect(c)
aux.AddMaterialCodeList(c,23000303)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),aux.FilterBoolFunction(Card.IsCode,23000303),1,1)
c:EnableReviveLimit()
--code
aux.EnableChangeCode(c,23000303,LOCATION_MZONE+LOCATION_GRAVE)
--indes
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -52,6 +50,8 @@ function c23000309.initial_effect(c)
e6:SetCode(EFFECT_MATERIAL_CHECK)
e6:SetValue(c23000309.valcheck)
c:RegisterEffect(e6)
--change name
aux.EnableChangeCode(c,23000303,LOCATION_MZONE+LOCATION_GRAVE)
end
c23000309.material_type=TYPE_SYNCHRO
function c23000309.indct(e,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