Commit 4c5cbcdb authored by Tachibana's avatar Tachibana

ybb

parent 8574601f
......@@ -85,7 +85,7 @@ function c64832008.tg(e,tp,eg,ep,ev,re,r,rp,chk)
return e:GetHandler():IsDiscardable(REASON_COST) and Duel.IsExistingMatchingCard(c64832008.costfil,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsPlayerCanDraw(tp,2)
end
local g=Duel.SelectMatchingCard(tp,c64832008.costfil,tp,LOCATION_HAND,0,1,1,e:GetHandler())
if g:GetFirst():IsCode(65010094,65010095) then Duel.SetChainLimit(c64832008.chlimit) end
if g:GetFirst():IsCode(64832010,64832011) then Duel.SetChainLimit(c64832008.chlimit) end
g:AddCard(e:GetHandler())
Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD)
Duel.SetTargetPlayer(tp)
......
......@@ -13,7 +13,7 @@ end
function cm.setop(e,tp)
local c=rscf.GetSelf(e)
local tc=rscf.GetTargetCard()
if not c or not tc or Duel.SSet(tp,tc)<=0 then return end
if not c or not tc or Duel.SSet(tp,tc)<=0 then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
......@@ -29,15 +29,12 @@ function cm.limitop(e,tp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCondition(rscon.sumtype("adv",cm.sfilter))
e1:SetOperation(cm.sumsuc)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.sfilter(c,e,tp,re,rp)
return c:GetSummonPlayer()==tp
end
function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
if not eg:GetFirst():IsSummonType(SUMMON_TYPE_ADVANCE) then return end
Duel.SetChainLimitTillChainEnd(cm.limit)
end
function cm.limit(e,ep,tp)
......
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