Commit 908eada7 authored by Tachibana's avatar Tachibana

ndyd

parent db29f021
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -51,7 +51,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(0xa82) and c:IsAbleToHand() return c:IsSetCard(0xa82) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -13,7 +13,7 @@ function cm.initial_effect(c) ...@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m)
e1:SetCondition(cm.setcon) e1:SetTarget(cm.tg)
e1:SetOperation(cm.setop) e1:SetOperation(cm.setop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--2 --2
...@@ -27,8 +27,8 @@ function cm.initial_effect(c) ...@@ -27,8 +27,8 @@ function cm.initial_effect(c)
e3:SetOperation(cm.nop) e3:SetOperation(cm.nop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.setcon(e,tp,eg,ep,ev,re,r,rp) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_GRAVE,0,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_GRAVE,0,1,nil) end
end end
function cm.setfilter(c) function cm.setfilter(c)
return c:IsType(TYPE_SPELL) and c:IsSSetable() return c:IsType(TYPE_SPELL) and c:IsSSetable()
......
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