Commit c6ec1890 authored by Tachibana's avatar Tachibana

tnndx

parent 4e3fec51
...@@ -8,7 +8,7 @@ function cm.initial_effect(c) ...@@ -8,7 +8,7 @@ function cm.initial_effect(c)
local e3 = rsef.STO(c,EVENT_TO_GRAVE,"sp",{1,m},"sp","de",cm.spcon,nil,rsop.target(rscf.spfilter2(),"sp"),cm.spop) local e3 = rsef.STO(c,EVENT_TO_GRAVE,"sp",{1,m},"sp","de",cm.spcon,nil,rsop.target(rscf.spfilter2(),"sp"),cm.spop)
end end
function cm.spcon(e) function cm.spcon(e)
return e:GetHandler():IsReason(REASON_EFFECT) return e:GetHandler():IsReason(REASON_DESTROY)
end end
function cm.spop(e,tp) function cm.spop(e,tp)
local c = rscf.GetSelf(e) local c = rscf.GetSelf(e)
......
...@@ -10,21 +10,11 @@ function cm.initial_effect(c) ...@@ -10,21 +10,11 @@ function cm.initial_effect(c)
local f2=function(e,tp) local f2=function(e,tp)
return not Duel.IsExistingMatchingCard(f1,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(f1,tp,LOCATION_MZONE,0,1,nil)
end end
local e1=rsef.ACT(c,nil,nil,{1,m,1},"rm,dam,sp","tg",f2,nil,cm.tg,cm.op) local e1=rsef.ACT(c,nil,nil,{1,m,1},"rm,dam,sp,dd","tg",f2,nil,rstg.target(Card.IsAbleToRemove,"rm",0,LOCATION_MZONE),cm.op)
rsef.SetChainLimit(e1,0,cm.limit)
end end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.limit(e,rp,tp,tg)
if chk==0 or chkc then return return not tg:IsContains(e:GetHandler())
rstg.TargetCheck(e,tp,eg,ep,ev,re,r,rp,chk,chkc,{Card.IsAbleToRemove,"rm",0,LOCATION_MZONE })
end
local tc=rstg.TargetSelect(e,tp,eg,ep,ev,re,r,rp,{Card.IsAbleToRemove,"rm",0,LOCATION_MZONE }):GetFirst()
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetChainLimit(cm.limit(tc))
end
function cm.limit(c)
return function (e,lp,tp)
return e:GetHandler()~=c
end
end end
function cm.op(e,tp) function cm.op(e,tp)
local tc=rscf.GetTargetCard() local tc=rscf.GetTargetCard()
......
...@@ -6,7 +6,7 @@ function cm.initial_effect(c) ...@@ -6,7 +6,7 @@ function cm.initial_effect(c)
aux.AddCodeList(c,65010001) aux.AddCodeList(c,65010001)
local e1=rsef.ACT(c) local e1=rsef.ACT(c)
e1:SetCondition(cm.con) e1:SetCondition(cm.con)
local e2=rsef.QO(c,nil,{m,0},{1,m},"eq,sp",{"tg",EFFECT_FLAG_NO_TURN_RESET },LOCATION_SZONE,nil,nil,cm.tg,cm.op) local e2=rsef.QO(c,nil,{m,0},{1,m},"eq,sp","tg,ntr",LOCATION_SZONE,nil,nil,cm.tg,cm.op)
end end
function cm.con(e,tp) function cm.con(e,tp)
local f=function(c) local f=function(c)
......
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