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

byd

parent 851b918a
...@@ -85,11 +85,18 @@ function cm.sumfilter(c) ...@@ -85,11 +85,18 @@ function cm.sumfilter(c)
end end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local ftp=e:GetHandler():GetOwner() local vp=e:GetHandler():GetOwner()
if Duel.Draw(p,d,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(cm.sumfilter,ftp,LOCATION_HAND,0,1,nil) and Duel.SelectYesNo(ftp,aux.Stringid(m,3)) then if Duel.Draw(p,d,REASON_EFFECT)>0 then
if Duel.IsExistingMatchingCard(cm.sumfilter,vp,LOCATION_HAND,0,1,nil)
and Duel.SelectYesNo(vp,aux.Stringid(m,3)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,ftp,HINTMSG_SUMMON) Duel.Hint(HINT_SELECTMSG,vp,HINTMSG_SUMMON)
local g=Duel.SelectMatchingCard(ftp,cm.sumfilter,tp,LOCATION_HAND,0,1,1,nil) local sg=Duel.SelectMatchingCard(vp,cm.sumfilter,vp,LOCATION_HAND,0,1,1,nil)
Duel.Summon(ftp,g:GetFirst(),true,nil) if sg:GetCount()>0 then
local tc=sg:GetFirst()
Duel.Summon(tp,tc,true,nil)
end
end
end end
end 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