Commit f9f6a803 authored by Tachibana's avatar Tachibana

ybb

parent f10d1514
No preview for this file type
......@@ -69,6 +69,12 @@ function cm.togop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function cm.sumcon(e,c)
return true
end
function cm.sumop(e,tp,eg,ep,ev,re,r,rp,c)
return true
end
--to hand
function cm.thfilter(c)
return c:IsSetCard(0xcc5) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() and not c:IsCode(m)
......
......@@ -44,7 +44,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if fg:FilterCount(Card.IsLocation,nil,LOCATION_DECK)==#fg or (#g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:Select(tp,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
Duel.SendtoGrave(sg,REASON_COST)
e:SetLabel(1)
else e:SetLabel(0) end
end
......
......@@ -32,9 +32,9 @@ function c64800128.filter(c)
end
function c64800128.adtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c64800128.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c64800128.filter,tp,LOCATION_MZONE,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end
if chk==0 then return Duel.IsExistingTarget(c64800128.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c64800128.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SelectTarget(tp,c64800128.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,e:GetHandler():GetLocation())
end
function c64800128.adop(e,tp,eg,ep,ev,re,r,rp)
......
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