Commit b3148834 authored by REIKAI's avatar REIKAI 💬

fix

parent 2da850b1
Pipeline #23896 passed with stages
in 26 minutes and 46 seconds
......@@ -36,7 +36,7 @@ function c16400081.activate(e,tp,eg,ep,ev,re,r,rp)
end
--spsummon
function c16400081.cfilter(c,tp)
return c:IsFaceup() and c:IsControler(1-tp)
return c:IsFaceup() and c:IsControler(1-tp) and c:IsSetCard(0xce2)
end
function c16400081.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c16400081.cfilter,1,nil,tp)
......
......@@ -53,7 +53,7 @@ function cm.mfilter0(c)
return c:IsOnField() and c:IsAbleToRemove()
end
function cm.mfilter1(c,e)
return c:IsLocation(LOCATION_HAND) and not c:IsImmuneToEffect(e)
return not c:IsImmuneToEffect(e)
end
function cm.mfilter2(c,e)
return c:IsOnField() and c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
......
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_TODECK)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_GRAVE)
e4:SetCountLimit(1,m)
e4:SetCountLimit(1,m+100)
e4:SetTarget(cm.thtg)
e4:SetOperation(cm.thop)
c:RegisterEffect(e4)
......@@ -51,10 +51,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk == 0 then
return true
end
e:SetLabel(1)
return true
end
function cm.check(c,e,tp)
return c:IsSetCard(0xce2) and c:IsFaceup() and c:IsLevelAbove(1) and c:IsAbleToDeckAsCost() and Duel.IsExistingMatchingCard(cm.check2,tp,0,LOCATION_MZONE,1,nil,c,e,tp)
......
......@@ -40,6 +40,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
end
function cm.cftg(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -47,7 +48,7 @@ function cm.cftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_HAND)
end
function cm.spcheck(c,e,tp)
return c:IsSetCard(0xce2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
return c:IsSetCard(0xce2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.cfop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE) < 1 then return false end
......
local m=16400094
local cm=_G["c"..m]
function cm.initial_effect(c)
--synchro summon
--synchro summon
c:EnableReviveLimit()
aux.AddSynchroMixProcedure(c,cm.matfilter1,nil,nil,aux.NonTuner(nil),1,99)
--cannot special summon
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.synlimit)
c:RegisterEffect(e1)
--immune
--immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
......@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(cm.efilter)
c:RegisterEffect(e1)
--atk
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(cm.value)
c:RegisterEffect(e2)
--tohand
--tohand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TOHAND)
......@@ -39,7 +39,7 @@ function cm.initial_effect(c)
e1:SetTarget(cm.thtg1)
e1:SetOperation(cm.thop1)
c:RegisterEffect(e1)
--tohand
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOHAND)
......@@ -59,7 +59,7 @@ function cm.efilter(e,re)
return not re:GetHandler():IsSetCard(0xce2)
end
function cm.check(c)
return c:IsSetCard(0xce2) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
return c:IsSetCard(0xce2) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
end
function cm.value(e,c)
return Duel.GetMatchingGroupCount(cm.check,0,LOCATION_REMOVED+LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_REMOVED+LOCATION_ONFIELD+LOCATION_GRAVE,nil)*500
......@@ -71,13 +71,12 @@ function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,nil)
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,sg:GetCount(),0,0)
local sg=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,1,0,0)
end
function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end
......
......@@ -68,7 +68,7 @@ function c16400097.tdop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x36c2))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xce2))
e1:SetValue(aux.tgoval)
e1:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e1,tp)
......@@ -89,15 +89,15 @@ function c16400097.spfilter(c)
return c:IsSetCard(0xce2) and not c:IsCode(16400097) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c16400097.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16400097.spfilter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c16400097.spfilter,tp,LOCATION_GRAVE,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function c16400097.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return false end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c16400097.spfilter,tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c16400097.spfilter,tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
\ No newline at end of file
......@@ -21,6 +21,8 @@ function c16400098.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(c16400098.tdcost)
e2:SetTarget(c16400098.tdtg)
e2:SetOperation(c16400098.tdop)
......@@ -57,19 +59,17 @@ function c16400098.thop(e,tp,eg,ep,ev,re,r,rp)
end
--todeck
function c16400098.cfilter(c,ft)
return c:IsFaceup() and c:IsAbleToHandAsCost()
return c:IsFaceup() and c:IsAbleToHandAsCost() and c:IsSetCard(0xce2)
end
function c16400098.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_REMOVED)
if chk==0 then return ft>1 and Duel.IsExistingMatchingCard(c16400098.cfilter,tp,LOCATION_REMOVED,0,2,nil,ft) end
if chk==0 then return Duel.IsExistingMatchingCard(c16400098.cfilter,tp,LOCATION_REMOVED,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,c16400098.cfilter,tp,LOCATION_REMOVED,0,2,2,nil,ft)
Duel.SendtoHand(g,1-tp,REASON_COST)
end
function c16400098.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and chkc:IsAbleToDeck() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
function c16400098.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,0)
end
function c16400098.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
......@@ -3,8 +3,8 @@ function c16400099.initial_effect(c)
--copy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(16400099,1))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_SZONE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,16400099)
e1:SetCost(c16400099.cpcost)
e1:SetTarget(c16400099.cptg)
......@@ -19,8 +19,8 @@ function c16400099.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCountLimit(1,16400199)
e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetTarget(c16400099.thtg)
e2:SetOperation(c16400099.thop)
e2:SetTarget(c16400099.target)
e2:SetOperation(c16400099.activate)
c:RegisterEffect(e2)
end
......@@ -28,7 +28,7 @@ function c16400099.cpfilter(c,exc,e,tp,eg,ep,ev,re,r,rp)
local te=c:CheckActivateEffect(true,true,false)
if not (c:IsSetCard(0xce2) and c:IsType(TYPE_SPELL) and c:IsAbleToRemoveAsCost() and te and te:GetOperation()) then return false end
local tg=te:GetTarget()
return (not tg) or tg(e,tp,eg,ep,ev,re,r,rp,0,nil,exc)
return (not tg) or tg(e,tp,eg,ep,ev,re,r,rp,0,nil)
end
function c16400099.cpcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
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