Commit a3dd41fb authored by Tachibana's avatar Tachibana

eme

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