Commit 69974bf5 authored by Tachibana's avatar Tachibana 🐟

pic

parent c3dcd524
Pipeline #26433 passed with stages
in 24 minutes and 5 seconds
......@@ -75,7 +75,7 @@ function s.thfilter(c,loc)
if loc~=nil then
return c:IsSetCard(0x490) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
else
return (c:IsSetCard(0x490) or aux.IsSetNameMonsterListed(c,0xc008)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return (c:IsSetCard(0x490)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
end
function s.rfilter(sg,tc)
......@@ -104,11 +104,11 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(thg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,thg)
local dg=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil,LOCATION_DECK)
-- if dg:CheckSubGroup(s.rfilter,1,thg:GetFirst():GetLevel(),thg:GetFirst()) and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
-- if dg:CheckSubGroup(s.rfilter,1,thg:GetFirst():GetLevel(),thg:GetFirst()) and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
if dg:GetCount()>=2 and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
-- local rg=dg:SelectSubGroup(tp,s.rfilter,false,1,thg:GetFirst():GetLevel(),thg:GetFirst())
-- local rg=dg:SelectSubGroup(tp,s.rfilter,false,1,thg:GetFirst():GetLevel(),thg:GetFirst())
local rg=dg:Select(tp,1,2,nil)
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
end
......@@ -127,11 +127,11 @@ function s.searchop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(thg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,thg)
local dg=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil,LOCATION_DECK)
-- if dg:CheckSubGroup(s.rfilter,1,thg:GetFirst():GetLevel(),thg:GetFirst()) and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
-- if dg:CheckSubGroup(s.rfilter,1,thg:GetFirst():GetLevel(),thg:GetFirst()) and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
if dg:GetCount()>=2 and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
-- local rg=dg:SelectSubGroup(tp,s.rfilter,false,1,thg:GetFirst():GetLevel(),thg:GetFirst())
-- local rg=dg:SelectSubGroup(tp,s.rfilter,false,1,thg:GetFirst():GetLevel(),thg:GetFirst())
local rg=dg:Select(tp,1,2,nil)
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
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