Commit 0a34f815 authored by 聖園ミカ's avatar 聖園ミカ 🐟

1+1=3

parent b255b5e4
......@@ -60,11 +60,17 @@ function c50224610.settg(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(c50224610.setfilter2,tp,LOCATION_DECK,0,1,nil) end
end
function c50224610.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c50224610.setfilter1,tp,LOCATION_DECK,0,1,1,nil)
local g2=Duel.SelectMatchingCard(tp,c50224610.setfilter2,tp,LOCATION_DECK,0,1,1,nil)
g:Merge(g2)
if #g==2 then Duel.SSet(tp,g) end
local g1=Duel.GetMatchingGroup(c50224610.setfilter1,tp,LOCATION_DECK,0,nil)
local g2=Duel.GetMatchingGroup(c50224610.setfilter2,tp,LOCATION_DECK,0,nil)
if g1:GetCount()>0 and g2:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg1=g1:Select(tp,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg2=g2:Select(tp,1,1,nil)
sg1:Merge(sg2)
Duel.HintSelection(sg1)
Duel.SSet(tp,sg1)
end
end
function c50224610.efilter(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer() and re:IsActivated()
......
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