Commit 786f80c9 authored by Nemo Ma's avatar Nemo Ma

fix

parent e7390149
......@@ -39,12 +39,17 @@ end
function c79014038.sthfil(c)
return c:IsAbleToHandAsCost() and c:IsType(TYPE_SPIRIT)
end
function c79014038.sthgck(g,tp)
return Duel.GetMZoneCount(tp,g)>0
end
function c79014038.ttcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(c79014038.sthfil,tp,LOCATION_MZONE,0,nil)
return g:CheckSubGroup(c79014038.sthgck,3,3,tp)
end
function c79014038.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(c79014038.sthfil,tp,LOCATION_MZONE,0,nil)
local sg=g:SelectSubGroup(tp,c79014038.sthgck,false,3,3,tp)
Duel.SendtoHand(sg,nil,REASON_SUMMON+REASON_MATERIAL)
......@@ -75,7 +80,7 @@ function c79014038.pbfil(c)
end
function c79014038.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c79014038.pbfil,tp,LOCATION_HAND,0,1,nil) end
local g=Duel.SelectMatchingCard(tp,c79014038.pbfil,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c79014038.pbfil,tp,LOCATION_HAND,0,1,99,nil)
Duel.ConfirmCards(1-tp,g)
e:SetLabel(g:GetCount())
end
......
......@@ -22,11 +22,9 @@ function c9910623.initial_effect(c)
c:RegisterEffect(e2)
--switch locations
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e3:SetCountLimit(1,9910622)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END+TIMING_END_PHASE)
e3:SetCost(c9910623.chcost)
e3:SetTarget(c9910623.chtg)
e3:SetOperation(c9910623.chop)
......
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