Commit 900b2356 authored by Amiya's avatar Amiya

修复

parent 6427379d
Pipeline #40501 passed with stages
in 2 minutes and 8 seconds
...@@ -18,6 +18,7 @@ function s.initial_effect(c) ...@@ -18,6 +18,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DRAW) e2:SetCategory(CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_HAND)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,EFFECT_COUNT_CODE_CHAIN) e2:SetCountLimit(1,EFFECT_COUNT_CODE_CHAIN)
e2:SetCondition(s.drcon) e2:SetCondition(s.drcon)
...@@ -55,7 +56,7 @@ function s.cfilter(c,tp) ...@@ -55,7 +56,7 @@ function s.cfilter(c,tp)
return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK) return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
end end
function s.drcon(e,tp,eg,ep,ev,re,r,rp) function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,1-tp) and re:GetHandler():IsSetCard(0x114) return eg:IsExists(s.cfilter,1,nil,1-tp) and re and not re:GetHandler():IsSetCard(0x114)
end end
function s.drfilter(c) function s.drfilter(c)
return c:IsFaceup() and c:IsSetCard(0x114) return c:IsFaceup() and c:IsSetCard(0x114)
......
...@@ -69,8 +69,9 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,8 +69,9 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.cfilter2(c,tp) function s.cfilter2(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
and c:IsPreviousSetCard(0x114) and c:IsPreviousPosition(POS_FACEUP)
and c:IsPreviousSetCard(0x114) and c:IsReason(REASON_EFFECT)
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and eg:IsExists(s.cfilter2,1,e:GetHandler(),tp) return rp==1-tp and eg:IsExists(s.cfilter2,1,e:GetHandler(),tp)
......
...@@ -21,7 +21,7 @@ function s.initial_effect(c) ...@@ -21,7 +21,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,nil)
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsSetCard(0x114) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x114) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -36,7 +36,11 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -36,7 +36,11 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,e:GetHandler()) local sg=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0) if not (g:GetCount()==g:FilterCount(Card.IsAbleToRemove,nil)
and Duel.IsExistingMatchingCard(s.cfilter1,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(s.cfilter2,tp,LOCATION_MZONE,0,1,nil)) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0)
end
end end
function s.cfilter1(c) function s.cfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x114) and c:IsLevelAbove(8) return c:IsFaceup() and c:IsSetCard(0x114) and c:IsLevelAbove(8)
...@@ -56,7 +60,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +60,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.cthfilter(c,tp) function s.cthfilter(c,tp)
return c:IsSetCard(0x114) and c:IsFaceup() return c:IsSetCard(0x114) and c:IsFaceup() and c:IsControler(tp)
and (c:IsLevelAbove(8) or c:IsLinkAbove(3)) and (c:IsLevelAbove(8) or c:IsLinkAbove(3))
end end
function s.thcon(e,tp,eg,ep,ev,re,r,rp) function s.thcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -52,9 +52,9 @@ function c1527418.cfilter(c,e,tp) ...@@ -52,9 +52,9 @@ function c1527418.cfilter(c,e,tp)
end end
end end
function c1527418.negcost(e,tp,eg,ep,ev,re,r,rp,chk) function c1527418.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c18319762.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c1527418.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local g=Duel.SelectMatchingCard(tp,c18319762.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c1527418.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
local te=tc:IsHasEffect(101303062,tp) local te=tc:IsHasEffect(101303062,tp)
if te then if te then
......
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