Commit f3b683dd authored by Tachibana's avatar Tachibana

ybb

parent 917e606d
No preview for this file type
...@@ -5,7 +5,7 @@ function c20000060.initial_effect(c) ...@@ -5,7 +5,7 @@ function c20000060.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20000060.tgf1,tp,0,LOCATION_DECK,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c20000060.tgf1,tp,0,LOCATION_DECK,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end) end)
......
...@@ -88,11 +88,11 @@ function cm.tgf2(c) ...@@ -88,11 +88,11 @@ function cm.tgf2(c)
return c:IsSetCard(0x308) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x308) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end end
function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.tgf2,tp,LOCATION_DECK,0,1,nil) end
end end
function cm.op2(e,tp,eg,ep,ev,re,r,rp) function cm.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.tgf2,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g:GetFirst())
end end
......
...@@ -37,12 +37,12 @@ end ...@@ -37,12 +37,12 @@ end
function c67200038.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c67200038.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local mg=e:GetHandler():GetMaterial() local mg=e:GetHandler():GetMaterial()
if mg:GetCount()<1 then return false end if mg:GetCount()<1 then return false end
local gh=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if chkc then return mg:IsContains(chkc) and c67200038.atkfilter(chkc,e) end if chkc then return mg:IsContains(chkc) and c67200038.atkfilter(chkc,e) end
if chk==0 then return mg:IsExists(c67200038.atkfilter,1,nil,e) end if chk==0 then return mg:IsExists(c67200038.atkfilter,1,nil,e) and gh:GetCount()>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g=mg:FilterSelect(tp,c67200038.atkfilter,1,1,nil,e) local g=mg:FilterSelect(tp,c67200038.atkfilter,1,1,nil,e)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
local gh=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,gh,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,gh,1,0,0)
Duel.SetChainLimit(c67200038.chainlm) Duel.SetChainLimit(c67200038.chainlm)
end end
......
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