Commit 95f0ae0b authored by wind2009's avatar wind2009

Fix

parent 891fec65
Pipeline #43580 passed with stages
in 1 minute and 12 seconds
No preview for this file type
No preview for this file type
......@@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetCondition(s.adcon)
e2:SetValue(-1500)
c:RegisterEffect(e2)
--to deck
--release effect
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON)
......@@ -66,7 +66,7 @@ function s.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and rc:IsSummonType(SUMMON_TYPE_SPECIAL) and rc:IsLocation(LOCATION_MZONE) and rc:IsSummonLocation(LOCATION_DECK+LOCATION_EXTRA)
end
function s.cfilter(c)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_ADVANCE)
return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end
function s.adcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -92,7 +92,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
{b1,aux.Stringid(id,2),1},
{b2,aux.Stringid(id,3),2})
end
e:SetLabel(op,ct)
e:SetLabel(op)
if op==1 then
if e:IsCostChecked() then
e:SetCategory(CATEGORY_TODECK)
......@@ -112,7 +112,6 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if e:GetLabel()==1 then
local g=Duel.GetMatchingGroup(s.tdfilter,tp,LOCATION_EXTRA+LOCATION_MZONE,LOCATION_EXTRA+LOCATION_MZONE,nil)
if aux.NecroValleyNegateCheck(g) then return end
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
elseif e:GetLabel()==2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -13,10 +13,10 @@ function s.initial_effect(c)
e1:SetTarget(s.atktg)
e1:SetValue(1)
c:RegisterEffect(e1)
--to deck
--release effect
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_TODECK+CATEGORY_TODECK+CATEGORY_DRAW)
e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_RELEASE)
e2:SetProperty(EFFECT_FLAG_DELAY)
......@@ -46,7 +46,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
{b1,aux.Stringid(id,1),1},
{b2,aux.Stringid(id,2),2})
end
e:SetLabel(op,ct)
e:SetLabel(op)
if op==1 then
if e:IsCostChecked() then
e:SetCategory(CATEGORY_TODECK)
......@@ -82,4 +82,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(1-tp,ct2,REASON_EFFECT)
end
end
end
\ No newline at end of file
end
--道化の一座 『終演』
--道化の一座『終演』
local s,id,o=GetID()
function s.initial_effect(c)
--Activate
......@@ -29,7 +29,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.cfilter(c)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_ADVANCE)
return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -51,8 +51,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,ct,0,0)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local rg=tg:Filter(Card.IsRelateToChain,nil)
local rg=Duel.GetTargetsRelateToChain()
if rg:GetCount()>0 then
Duel.Destroy(rg,REASON_EFFECT)
end
......@@ -95,4 +94,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
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