Commit 3e893902 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c50224115.lua

parent 19b7c3a3
Pipeline #30677 canceled with stages
in 8 seconds
...@@ -133,13 +133,18 @@ function c50224115.thfilter(c,code) ...@@ -133,13 +133,18 @@ function c50224115.thfilter(c,code)
end end
function c50224115.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50224115.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,0,LOCATION_REMOVED) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_REMOVED)
end end
function c50224115.thop(e,tp,eg,ep,ev,re,r,rp) function c50224115.thop(e,tp,eg,ep,ev,re,r,rp)
local t1=Duel.GetFirstMatchingCard(c50224115.thfilter,tp,LOCATION_REMOVED,0,nil,50223105) local g1=Duel.GetMatchingGroup(c50224115.thfilter,tp,LOCATION_REMOVED,0,nil,50223105)
if not t1 then return end local g2=Duel.GetMatchingGroup(c50224115.thfilter,tp,LOCATION_REMOVED,0,nil,50223110)
local t2=Duel.GetFirstMatchingCard(c50224115.thfilter,tp,LOCATION_REMOVED,0,nil,50223110) if g1:GetCount()>0 and g2:GetCount()>0 then
if not t2 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Group.FromCards(t1,t2) local sg1=g1:Select(tp,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg2=g2:Select(tp,1,1,nil)
sg1:Merge(sg2)
Duel.SendtoHand(sg1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg1)
end
end end
\ No newline at end of file
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