Commit c0b06eb5 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent b22aeccd
No preview for this file type
......@@ -22,11 +22,10 @@ function c12004008.initial_effect(c)
e2:SetTarget(c12004008.distg)
e2:SetOperation(c12004008.disop)
c:RegisterEffect(e2)
end
function c12004008.discon(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsChainNegatable(ev) then return false end
return ( re:IsHasCategory(CATEGORY_DISABLE) or re:IsHasCategory(CATEGORY_NEGATE) ) and not re:GetHandler:IsCode(12004008)
return (re:IsHasCategory(CATEGORY_DISABLE) or re:IsHasCategory(CATEGORY_NEGATE)) and not re:GetHandler():IsCode(12004008)
end
function c12004008.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
......
......@@ -96,6 +96,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
function cm.thcostfilter(c)
return c:IsRace(RACE_REPTILE) and c:IsAbleToRemoveAsCost()
end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(cm.thcostfilter,tp,LOCATION_GRAVE,0,1,c) end
......
......@@ -36,6 +36,7 @@ function cm.ccfilter(c,s,tp)
return seq<5 and math.abs(seq-s)==1 and c:IsControler(tp)
end
function cm.descon(e)
local seq=e:GetHandler():GetSequence()
return Duel.IsExistingMatchingCard(cm.ccfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler(),seq,e:GetHandlerPlayer())
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -56,7 +56,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.filter(c)
return c:IsAbleToHand() and c:IsSetCard(0x8fb5)
return c:IsAbleToHand() and c:IsSetCard(0x8fb5) and c:IsFaceup()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_ONFIELD,0,1,nil) and e:GetHandler():IsAbleToDeck() and Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -2,7 +2,7 @@
function c33330016.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x556),2)
c:EnableReviveLimit()
c:EnableReviveLimit()
--seq
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(33330016,1))
......@@ -61,7 +61,7 @@ function c33330016.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return tc and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,2,0,LOCATION_ONFIELD)
end
function c33330013.desop(e,tp,eg,ep,ev,re,r,rp)
function c33330016.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFieldCard(tp,LOCATION_SZONE,5)
if tc and Duel.Destroy(tc,REASON_EFFECT)~=0 and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -73,15 +73,15 @@ function c33400427.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c33400427.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
if Duel.IsExistingMatchingCard(c33400427.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and not Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_MZONE,0,1,nil,0x341)and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,0,LOCATION_MZONE,1,nil,0x341)
if Duel.IsExistingMatchingCard(c33400427.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and ((not Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_MZONE,0,1,nil,0x341)and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,0,LOCATION_MZONE,1,nil,0x341) )
or ( Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) and
(Duel.IsExistingMatchingCard(c33400427.cccfilter1,tp,LOCATION_ONFIELD,0,1,nil) or
Duel.IsExistingMatchingCard(c33400427.cccfilter2,tp,LOCATION_MZONE,0,1,nil)))
Duel.IsExistingMatchingCard(c33400427.cccfilter2,tp,LOCATION_MZONE,0,1,nil))) )
then
if Duel.SelectYesNo(tp,aux.Stringid(33400427,3)) then
local g2=Duel.SelectMatchingCard(tp,c33400427.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)
end
end
end
end
end
......@@ -137,7 +137,7 @@ function c33400427.xyzop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c33400427.xyzfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=g:Select(tp,1,1,nil)
local tg=g:Select(tp,1,1,nil)
if Duel.XyzSummon(tp,tg:GetFirst(),nil) and not Duel.IsExistingMatchingCard(c33400427.spcfilter,tp,LOCATION_MZONE,0,1,nil) then
if Duel.IsExistingMatchingCard(c33400427.spcfilter,tp,0,LOCATION_MZONE,1,nil)
or
......
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