Commit 93ed9b9e authored by Tachibana's avatar Tachibana

ndyd

parent f9a87df7
...@@ -16,7 +16,7 @@ function cm.initial_effect(c) ...@@ -16,7 +16,7 @@ function cm.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1,m+100) e3:SetCountLimit(1,m+100)
e3:SetCondition(cm.thcon) e3:SetCondition(cm.thcon)
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.ffilter(c,fc,sub,mg,sg) function cm.ffilter(c,fc,sub,mg,sg)
return ( not sg or not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode()) ) and c:IsSetCard(0xcfac) return ( not sg or not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode()) ) and c:IsSetCard(0xcfac) and c:IsType(TYPE_MONSTER)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp return rp==1-tp
......
...@@ -80,15 +80,15 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,15 +80,15 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetLabelObject(tc) e1:SetLabelObject(tc)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(cm.descon) e1:SetCondition(cm.descon1)
e1:SetOperation(cm.desop) e1:SetOperation(cm.desop1)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
end end
end end
function cm.descon(e,tp,eg,ep,ev,re,r,rp) function cm.descon1(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
if tc:GetFlagEffect(m)~=0 then if tc:GetFlagEffect(m)~=0 then
return true return true
...@@ -97,6 +97,6 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +97,6 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return false return false
end end
end end
function cm.desop(e,tp,eg,ep,ev,re,r,rp) function cm.desop1(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(e:GetLabelObject(),nil,REASON_EFFECT) Duel.SendtoHand(e:GetLabelObject(),nil,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -64,7 +64,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0xcfac) return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0xcfac)
end end
function cm.thfilter1(c) function cm.thfilter1(c)
return c:IsSetCard(0xcfac) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0xcfac) and c:IsAbleToHand()
end end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -48,7 +48,6 @@ end ...@@ -48,7 +48,6 @@ end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler(),e,tp) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler(),e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
......
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