Commit c5c0fcad authored by Nemo Ma's avatar Nemo Ma

fix

parent 878f0269
......@@ -36,7 +36,7 @@ function cm.mfilter(c)
return c:IsAttackAbove(2000) and c:IsLinkType(TYPE_TOKEN)
end
function cm.tgfilter(c)
return c:IsAbleToGraveAsCost() and c:IsSetCard(0x3f3f)
return c:IsAbleToGraveAsCost() and c:IsSetCard(0x3f3f) and c:IsType(TYPE_MONSTER)
end
function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -49,7 +49,6 @@ end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tp=c:GetControler()
Duel.Hint(HINT_CARD,1-tp,15000938)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_HAND,0,1,1,nil)
if Duel.SendtoGrave(g1,REASON_COST)~=0 then
......
......@@ -2,16 +2,17 @@
local m=64800025
local cm=_G["c"..m]
function cm.initial_effect(c)
--synchro summon
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--remove
--remove
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_REMOVE)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(cm.rmcon)
e3:SetCost(cm.cost)
......
......@@ -57,8 +57,10 @@ function c9910217.discon(e,tp,eg,ep,ev,re,r,rp)
return g and g:IsContains(c)
end
function c9910217.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_COST)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.HintSelection(Group.FromCards(c))
Duel.SendtoDeck(c,nil,2,REASON_COST)
end
function c9910217.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) 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