Commit d5d9f551 authored by TanakaKotoha's avatar TanakaKotoha

fbk

parent 13514d3b
......@@ -8,6 +8,7 @@ function c34511160.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCost(c34511160.atkcost)
e2:SetCountLimit(1,34511160)
e2:SetTarget(c34511160.ptg)
e2:SetOperation(c34511160.pop)
......@@ -22,13 +23,17 @@ function c34511160.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,34511160)
e3:SetCondition(c34511170.spcon)
e3:SetTarget(c34511170.sptg1)
e3:SetOperation(c34511170.spop1)
e3:SetTarget(c34511160.ptg1)
e3:SetOperation(c34511160.pop1)
c:RegisterEffect(e3)
end
function c34511160.matfilter(c)
return c:IsXyzType(TYPE_PENDULUM)
end
function c34511160.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c34511160.pfilter(c)
return c:IsFaceup() and c:IsAbleToHand()
end
......@@ -65,13 +70,13 @@ function c34511160.spcon(e,tp,eg,ep,ev,re,r,rp)
end
-----------------------
function c34511160.thfilter(c)
return c:IsSetCard(0xac5) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
return c:IsSetCard(0xac5) and c:IsType(TYPE_SPELL or TYPE_TRAP) and c:IsAbleToHand()
end
function c34511160.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
function c34511160.ptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c34511160.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c34511160.spop1(e,tp,eg,ep,ev,re,r,rp)
function c34511160.pop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c34511160.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
......
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