Commit abf50a90 authored by Tachibana's avatar Tachibana

ndyd

parent 8d16a02f
......@@ -69,7 +69,7 @@ function cm.chainfilter(re,tp,cid)
and Duel.GetChainInfo(cid,CHAININFO_TRIGGERING_LOCATION)==LOCATION_HAND)
end
function cm.spfilter(c,fc,tp)
return c:IsRace(RACE_SPELLCASTER) and c:IsSummonType(SUMMON_TYPE_NORMAL) and not c:IsFusionType(TYPE_FUSION)
return c:IsRace(RACE_SEASERPENT) and c:IsSummonType(SUMMON_TYPE_NORMAL) and not c:IsFusionType(TYPE_FUSION)
and c:IsReleasable() and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0 and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL)
end
function cm.spcon(e,c)
......
......@@ -50,7 +50,7 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
local e3=Sr_shts.reffect(c,code,CATEGORY_DRAW+CATEGORY_TOHAND)
local e3=Sr_shts.reffect(c,m,CATEGORY_DRAW+CATEGORY_TOHAND)
end
function cm.thfilter(c)
return c:IsSetCard(0x6fa6) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......@@ -72,7 +72,7 @@ function cm.rtg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_ONFIELD,0,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function cm.rtg(e,tp,eg,ep,ev,re,r,rp)
function cm.rop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,0,1,1,nil)
if g:GetCount()>0 then
......@@ -81,4 +81,4 @@ function cm.rtg(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
end
end
end
end
\ No newline at end of file
......@@ -14,7 +14,7 @@ function cm.initial_effect(c)
e1:SetCondition(cm.spcon)
c:RegisterEffect(e1)
local e3=Sr_shts.reffect(c,code)
local e3=Sr_shts.reffect(c,m)
end
function cm.spcon(e,c)
if c==nil then return true end
......
......@@ -18,7 +18,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.tdop)
c:RegisterEffect(e1)
local e3=Sr_shts.reffect(c,code,CATEGORY_TOHAND+CATEGORY_SEARCH)
local e3=Sr_shts.reffect(c,m,CATEGORY_TOHAND+CATEGORY_SEARCH)
end
function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......
......@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e1:SetValue(cm.efilter)
c:RegisterEffect(e1)
local e3=Sr_shts.reffect(c,code,CATEGORY_REMOVE)
local e3=Sr_shts.reffect(c,m,CATEGORY_REMOVE)
end
function cm.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
......
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
--redirect
local e0=Sr_shts.peffect(c)
local e3=Sr_shts.reffect(c,code,CATEGORY_DESTROY)
local e3=Sr_shts.reffect(c,m,CATEGORY_DESTROY)
--disable
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,0))
......
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
--redirect
local e0=Sr_shts.peffect(c)
local e3=Sr_shts.reffect(c,code,CATEGORY_REMOVE)
local e3=Sr_shts.reffect(c,m,CATEGORY_REMOVE)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
......
......@@ -78,7 +78,7 @@ function c12041001.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c12041001.tdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 and Duel.SendtoHand(g,REASON_EFFECT)~=0 then
if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 then
local gc=g:GetFirst()
while gc do
local e1=Effect.CreateEffect(e:GetHandler())
......
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