Commit d333df0b authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12043020.lua

parent b36cf08c
......@@ -27,7 +27,7 @@ function cm.filter(c)
return c:IsSetCard(0xcfaa) and c:IsFaceup() and c:IsAbleToHand()
end
function cm.sumfilter(c)
return c:IsSetCard(0xcfaa) and c:IsSummonable(true,nil,1)
return c:IsSetCard(0xcfaa) and c:IsSummonable(true,nil)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
......@@ -40,12 +40,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 then
if Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON)
local g=Duel.SelectMatchingCard(tp,cm.sumfilter,tp,LOCATION_HAND,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.Summon(tp,tc,true,nil,1)
Duel.Summon(tp,tc,true,nil)
end
else
Card.CancelToGrave(c)
......@@ -70,4 +70,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SSet(tp,c)
Duel.ConfirmCards(1-tp,c)
end
end
\ No newline at end of file
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