Commit f0c84417 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c18700436.lua

parent 3c2a463c
......@@ -29,12 +29,12 @@ function cm.cfilter5(c)
return c:IsCanAddCounter(0x1820,1,nil,nil) and c:IsFaceup()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return (Duel.IsExistingMatchingCard(cm.thfilter2,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) and Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)==0) or Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)~=0 end
if chk==0 then return (Duel.IsExistingMatchingCard(cm.thfilter2,tp,LOCATION_DECK,0,1,nil) and Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)==0) or Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)~=0 end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter2,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.thfilter2,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
......
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