Commit 85efaffe authored by POLYMER's avatar POLYMER

fix

parent d25c5e68
......@@ -12,7 +12,7 @@ function c12841122.initial_effect(c)
e1:SetCondition(c12841122.sccon)
e1:SetTarget(c12841122.sctg)
e1:SetOperation(c12841122.scop)
--c:RegisterEffect(e1)
c:RegisterEffect(e1)
--token
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12841122,1))
......@@ -24,7 +24,7 @@ function c12841122.initial_effect(c)
e2:SetCondition(c12841122.spcon)
e2:SetTarget(c12841122.sptg)
e2:SetOperation(c12841122.spop)
--c:RegisterEffect(e2)
c:RegisterEffect(e2)
end
function c12841122.sccon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
......
......@@ -25,15 +25,15 @@ function this.initial_effect(c)
c:RegisterEffect(e3)
end
function this.tdfilter(c)
return c:IsSetCard(0x6567) and c:IsAbleToDeck()
return c:IsSetCard(0x6567) and c:IsFaceupEx() and c:IsAbleToDeck()
end
function this.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and this.tdfilter(chkc) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(this.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
and Duel.IsExistingTarget(this.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,this.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,3,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,5,0,0)
local g=Duel.SelectTarget(tp,this.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,3,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function this.thspfilter(c,e,tp)
......@@ -79,6 +79,6 @@ function this.gspop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(this.gspfil,tp,LOCATION_PZONE,0,nil,e,tp)
if g:GetCount()>0 then
local sg=g:Select(tp,1,1,nil)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
end
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