Commit 4cc3aa01 authored by Tachibana's avatar Tachibana

hole

parent b59d5302
--周子·今非昔比 --周子·今非昔比
function c81040041.initial_effect(c) local m=81040041
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
...@@ -13,10 +16,10 @@ function c81040041.initial_effect(c) ...@@ -13,10 +16,10 @@ function c81040041.initial_effect(c)
e2:SetCategory(CATEGORY_TODECK) e2:SetCategory(CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,81040041) e2:SetCountLimit(1,m)
e2:SetCondition(aux.exccon) e2:SetCondition(aux.exccon)
e2:SetTarget(c81040041.settg) e2:SetTarget(cm.settg)
e2:SetOperation(c81040041.setop) e2:SetOperation(cm.setop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
...@@ -77,18 +80,18 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,18 +80,18 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
function c81040041.setfilter(c) function cm.setfilter(c)
return c:IsFaceup() and c:IsSetCard(0x81c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return c:IsFaceup() and c:IsSetCard(0x81c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end end
function c81040041.settg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsSSetable() if chk==0 then return e:GetHandler():IsSSetable()
and Duel.IsExistingMatchingCard(c81040041.setfilter,tp,LOCATION_REMOVED,0,1,nil) end and Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end end
function c81040041.setop(e,tp,eg,ep,ev,re,r,rp) function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,c81040041.setfilter,tp,LOCATION_REMOVED,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.setfilter,tp,LOCATION_REMOVED,0,1,1,nil)
if #g>0 and Duel.SendtoDeck(g,nil,2,REASON_EFFECT)>0 if #g>0 and Duel.SendtoDeck(g,nil,2,REASON_EFFECT)>0
and c:IsRelateToEffect(e) and c:IsSSetable() then and c:IsRelateToEffect(e) and c:IsSSetable() then
Duel.SSet(tp,c) Duel.SSet(tp,c)
......
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