Commit 71b2a065 authored by Tachibana's avatar Tachibana

12

parent 857323fe
......@@ -57,7 +57,7 @@ function cm.indop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_END)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetReset(RESET_EVENT+EVENT_CHAIN_END)
e1:SetCountLimit(1)
e1:SetOperation(cm.retop)
Duel.RegisterEffect(e1,tp)
......
......@@ -68,7 +68,7 @@ end
function c12030001.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -6,7 +6,7 @@ cm.rssetcode="yatori"
function cm.initial_effect(c)
c:EnableReviveLimit()
aux.AddLinkProcedure(c,nil,2,2,cm.check)
local e1=rsef.QO(c,EVENT_CHAINING,{m,0},nil,"neg,des,dis","dcal,dsp",LOCATION_MZONE,rscon.negcon(3),rscost.cost({cm.cfilter,"res",LOCATION_MZONE }),rstg.negtg("des"),cm.negop)
local e1=rsef.QO(c,EVENT_CHAINING,{m,0},nil,"neg,des,dis","dcal,dsp",LOCATION_MZONE,rscon.negcon(3),rscost.cost({cm.cfilter,"res",LOCATION_MZONE }),rstg.neg("des",aux.TRUE),rsop.negop("des",cm.negop))
local e2=rsef.FTF(c,EVENT_TO_GRAVE)
e2:SetRange(LOCATION_MZONE)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
......@@ -45,7 +45,6 @@ function cm.cfilter(c,e)
return c:CheckSetCard("yatori") and e:GetHandler():GetLinkedGroup():IsContains(c)
end
function cm.negop(e,tp,eg,ep,ev,re,r,rp)
local bool=rsop.negop("des")(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if bool and rc:IsType(TYPE_MONSTER) then
local c=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