Commit cab14f97 authored by GuGu's avatar GuGu

Delete c19500036.lua

parent 43f28795
Pipeline #29168 passed with stage
in 7 seconds
--魔彩光·上海人形
function c19500036.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_MACHINE),1,2,c19500036.ovfilter,aux.Stringid(19500036,3),99,c19500036.xyzop)
c:EnableReviveLimit()
--spsummon
-- local e1=Effect.CreateEffect(c)
--e1:SetDescription(aux.Stringid(19500036,0))
-- e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
-- e1:SetType(EFFECT_TYPE_IGNITION)
-- e1:SetCountLimit(1,19500036)
-- e1:SetRange(LOCATION_MZONE)
-- e1:SetCost(c19500036.cost)
-- e1:SetTarget(c19500036.sptg)
-- e1:SetOperation(c19500036.spop)
-- c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(19500036,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1,19500036)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(c19500036.cost)
e2:SetTarget(c19500036.thtg)
e2:SetOperation(c19500036.thop)
c:RegisterEffect(e2)
end
function c19500036.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x186) and c:IsRace(RACE_MACHINE) and c:IsSummonType(SUMMON_TYPE_DUAL)
end
function c19500036.xyzop(e,tp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,19500036)==0 end
Duel.RegisterFlagEffect(tp,19500036,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function c19500036.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) or c.Mobius==999 end
if c.Mobius~=999 then e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) else end
end
--function c19500036.spfilter(c,e,tp)
-- return c:IsSetCard(0x186) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
--end
--function c19500036.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
-- if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
-- and Duel.IsExistingMatchingCard(c19500036.spfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,e,tp) end
-- Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+--LOCATION_HAND)
--end
--function c19500036.spop(e,tp,eg,ep,ev,re,r,rp)
--if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
-- Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
-- local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c19500036.spfilter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp)
--if g:GetCount()>0 then
-- Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
-- end
--end
function c19500036.thfilter(c)
return c:IsSetCard(0x186) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end
function c19500036.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19500036.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c19500036.tdfilter(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x186)
end
function c19500036.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c19500036.tdfilter,tp,LOCATION_DECK,0,1,1,nil)
local g1=Duel.GetMatchingGroup(c19500036.tdfilter,tp,LOCATION_DECK,0,g:GetFirst())
if #g>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 and #g1>0 and Duel.SelectYesNo(tp,aux.Stringid(19500036,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(19500036,4))
local sg=g1:Select(tp,1,1,nil)
local tc=sg:GetFirst()
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
Duel.ConfirmDecktop(tp,1)
end
end
\ No newline at end of file
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