Commit 671a6288 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent d7ca8439
expansions/pics/field/88800004.jpg

115 KB | W: | H:

expansions/pics/field/88800004.jpg

93.7 KB | W: | H:

expansions/pics/field/88800004.jpg
expansions/pics/field/88800004.jpg
expansions/pics/field/88800004.jpg
expansions/pics/field/88800004.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -64,11 +64,6 @@ end
function c65020138.actcon(e)
return Duel.GetCurrentChain()<=0
end
function c65020138.actcon(e)
local a=Duel.GetAttacker()
local b=Duel.GetAttackTarget()
return (a~=nil and a:IsSetCard(0x5da7)) or (b~=nil and b:IsSetCard(0x5da7))
end
function c65020138.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_HAND)
......
......@@ -45,6 +45,19 @@ function c65020178.initial_effect(c)
e5:SetTarget(c65020178.tg)
e5:SetOperation(c65020178.op)
c:RegisterEffect(e5)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_SUMMON_PROC)
e0:SetRange(LOCATION_FZONE)
e0:SetCondition(c65020178.ntcon)
e0:SetValue(SUMMON_TYPE_NORMAL)
c:RegisterEffect(e0)
e4:SetLabelObject(e0)
end
function c65020178.ntcon(e,c,minc)
if c==nil then return true end
return minc==0 and Duel.CheckTribute(c,0)
end
function c65020178.eqlimit(e,c)
return c:IsSetCard(0x5da7)
......@@ -110,19 +123,21 @@ function c65020178.sumfil(c,e)
return c:IsType(TYPE_SPIRIT) and c:IsSummonable(true,e)
end
function c65020178.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) and Duel.IsExistingMatchingCard(c65020178.sumfil,tp,LOCATION_HAND,0,1,nil,e) and Duel.GetMZoneCount(tp)>0 end
local se=e:GetLabelObject()
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) and Duel.IsExistingMatchingCard(c65020178.sumfil,tp,LOCATION_HAND,0,1,nil,se) and Duel.GetMZoneCount(tp)>0 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,tp,LOCATION_HAND)
Duel.SetChainLimit(aux.FALSE)
end
function c65020178.retop(e,tp,eg,ep,ev,re,r,rp)
local se=e:GetLabelObject()
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
if Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 and Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(c65020178.sumfil,tp,LOCATION_HAND,0,1,nil,e) then
local sg=Duel.SelectMatchingCard(tp,c65020178.sumfil,tp,LOCATION_HAND,0,1,1,nil,e)
if Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 and Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(c65020178.sumfil,tp,LOCATION_HAND,0,1,nil,se) then
local sg=Duel.SelectMatchingCard(tp,c65020178.sumfil,tp,LOCATION_HAND,0,1,1,nil,se)
local sgc=sg:GetFirst()
Duel.Summon(tp,sgc,true,e)
Duel.Summon(tp,sgc,true,se)
end
end
end
\ No newline at end of file
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