Commit 20c68b37 authored by Amiya's avatar Amiya

Merge branch 'master' of git.moenext.com:mycard/pre-release-database-cdb

parents 0b7a04b7 bf899ce4
Pipeline #42926 passed with stages
in 5 minutes and 41 seconds
...@@ -64,20 +64,20 @@ end ...@@ -64,20 +64,20 @@ end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp) function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp return Duel.GetTurnPlayer()==1-tp
end end
function s.tdfilter(c,tp) function s.gcheck(g,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsAttribute(ATTRIBUTE_WIND)
end
function s.fselect(g,tp)
return g:IsExists(s.tdfilter,1,nil,tp) return g:IsExists(s.tdfilter,1,nil,tp)
end end
function s.tdfilter(c,tp)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_MONSTER)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local rg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,tp) local rg=Duel.GetMatchingGroup(aux.AND(Card.IsAbleToDeck,Card.IsCanBeEffectTarget),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if chk==0 then return rg:CheckSubGroup(s.fselect,2,2,tp) end if chk==0 then return rg:CheckSubGroup(s.gcheck,2,2,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=rg:SelectSubGroup(tp,s.fselect,false,2,2,tp,c) local tg=rg:SelectSubGroup(tp,s.gcheck,false,2,2,tp)
Duel.SetTargetCard(sg) Duel.SetTargetCard(tg)
Duel.SetOperationInfo(0,CATEGORY_TODECK,sg,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,tg,2,0,0)
end end
function s.tdop(e,tp,eg,ep,ev,re,r,rp) function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetTargetsRelateToChain() local tg=Duel.GetTargetsRelateToChain()
......
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