Commit 097bfef7 authored by 聖園ミカ's avatar 聖園ミカ 🐟

man!

parent 0311b2af
Pipeline #32473 passed with stages
in 34 minutes and 57 seconds
...@@ -147,7 +147,7 @@ function cm.aclimit(e,re,tp) ...@@ -147,7 +147,7 @@ function cm.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP)
end end
function cm.thfilter3(c) function cm.thfilter3(c)
return c:IsType(TYPE_RITUAL+TYPE_MONSTER) and c:IsAbleToHand() return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.thtg3(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter3,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter3,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -107,13 +107,13 @@ function cm.sfil(c) ...@@ -107,13 +107,13 @@ function cm.sfil(c)
return c:IsCode(23410001) and c:IsFaceup() return c:IsCode(23410001) and c:IsFaceup()
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_REMOVED+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_REMOVED+LOCATION_GRAVE)
end end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp) function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,2,nil) then return end if not Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,1,nil) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,1,2,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
local i=0 local i=0
for c in aux.Next(g) do for c in aux.Next(g) do
......
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