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

Replace c11800077.lua

parent d4b39dfd
Pipeline #31204 failed with stages
in 22 minutes and 29 seconds
......@@ -47,13 +47,14 @@ function s.cpfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3310) and c:IsType(TYPE_MONSTER)
end
function s.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
if Duel.IsExistingMatchingCard(s.cpfilter,tp,LOCATION_GRAVE,0,6,nil) and c:IsReleasableByEffect() and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) and Duel.SelectEffectYesNo(tp,aux.Stringid(id,1)) then
if Duel.IsExistingMatchingCard(s.cpfilter,tp,LOCATION_GRAVE,0,6,nil) and c:IsReleasableByEffect() and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
if Duel.Release(e:GetHandler(),REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,1,nil)
......
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