Commit ef16ad9f authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 47370663
...@@ -70,7 +70,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,dp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,dp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(dp,cm.spfilter1,dp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(dp,cm.spfilter1,dp,LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,tg) Duel.SSet(tp,g)
end end
end end
end end
......
...@@ -7,6 +7,7 @@ function c16101165.initial_effect(c) ...@@ -7,6 +7,7 @@ function c16101165.initial_effect(c)
e1:SetDescription(aux.Stringid(16101165,0)) e1:SetDescription(aux.Stringid(16101165,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_PZONE) e1:SetRange(LOCATION_PZONE)
e1:SetCountLimit(1,16101165) e1:SetCountLimit(1,16101165)
e1:SetCost(c16101165.thcost) e1:SetCost(c16101165.thcost)
......
...@@ -23,10 +23,10 @@ function cm.initial_effect(c) ...@@ -23,10 +23,10 @@ function cm.initial_effect(c)
e2:SetLabelObject(e0) e2:SetLabelObject(e0)
e2:SetLabel(m) e2:SetLabel(m)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e4=e2:Clone() local e1=e2:Clone()
e4:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetCondition(cm.descon) e1:SetCondition(cm.descon)
c:RegisterEffect(e4) c:RegisterEffect(e1)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(m,1))
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
...@@ -40,7 +40,7 @@ end ...@@ -40,7 +40,7 @@ end
--e2 --e2
function cm.descon(e,tp,eg,ep,ev,re,r,rp) function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFlagEffect(e:GetHandlerPlayer(),m) local ct=Duel.GetFlagEffect(e:GetHandlerPlayer(),m)
return re and re:GetHandler():IsCode(75640050) and ct>0 return re and re:GetHandler():IsCode(75640050) and ct==0
end end
function cm.valcheck(e,c) function cm.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
......
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