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) ...@@ -22,11 +22,10 @@ function c12004008.initial_effect(c)
e2:SetTarget(c12004008.distg) e2:SetTarget(c12004008.distg)
e2:SetOperation(c12004008.disop) e2:SetOperation(c12004008.disop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c12004008.discon(e,tp,eg,ep,ev,re,r,rp) function c12004008.discon(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsChainNegatable(ev) then return false end 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 end
function c12004008.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c12004008.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end if chk==0 then return e:GetHandler():IsAbleToHand() end
......
...@@ -96,6 +96,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,6 +96,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
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) function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(cm.thcostfilter,tp,LOCATION_GRAVE,0,1,c) end 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) ...@@ -36,6 +36,7 @@ function cm.ccfilter(c,s,tp)
return seq<5 and math.abs(seq-s)==1 and c:IsControler(tp) return seq<5 and math.abs(seq-s)==1 and c:IsControler(tp)
end end
function cm.descon(e) 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()) return Duel.IsExistingMatchingCard(cm.ccfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler(),seq,e:GetHandlerPlayer())
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) 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) ...@@ -56,7 +56,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.filter(c) function cm.filter(c)
return c:IsAbleToHand() and c:IsSetCard(0x8fb5) return c:IsAbleToHand() and c:IsSetCard(0x8fb5) and c:IsFaceup()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) 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 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
......
...@@ -61,7 +61,7 @@ function c33330016.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -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 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) Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,2,0,LOCATION_ONFIELD)
end 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) 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 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -73,10 +73,10 @@ function c33400427.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,10 +73,10 @@ 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) local g=Duel.SelectMatchingCard(tp,c33400427.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) 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 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.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 then
if Duel.SelectYesNo(tp,aux.Stringid(33400427,3)) 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) local g2=Duel.SelectMatchingCard(tp,c33400427.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
......
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