Commit 1eed3c5e authored by Nemo Ma's avatar Nemo Ma

fix

parent 56837a96
......@@ -990,6 +990,301 @@
30015045 0
30015080 0
30015100 0
#221005
31400081 0
31400083 0
31400082 0
31400085 0
31400084 0
31400124 0
31400125 0
31400126 0
10401401 0
33720056 0
40008715 0
40009249 0
40009459 0
82208107 0
15000600 0
33711401 1
82566601 0
82567779 0
82567782 0
82567783 0
82567784 0
82567785 0
82567786 0
82567787 0
82567788 0
82567789 0
82567790 0
82567791 0
82567792 0
82567793 0
82567794 0
82567795 0
82567796 0
82567797 0
82567798 0
82567799 0
82567800 0
82567801 0
82567802 0
82567803 0
82567804 0
82567805 0
82567806 0
82567807 0
82567808 0
82567809 0
82567810 0
82567811 0
82567812 0
82567813 0
82567814 0
82567815 0
82567816 0
82567817 0
82567818 0
82567819 0
82567820 0
82567821 0
82567822 0
82567823 0
82567824 0
82567825 0
82567826 0
82567827 0
82567828 0
82567829 0
82567830 0
82567831 0
82567832 0
82567833 0
82567834 0
82567835 0
82567836 0
82567837 0
82567838 0
82567839 0
82567840 0
82567841 0
82567842 0
82567843 0
82567844 0
82567845 0
82567846 0
82567847 0
82567848 0
82567849 0
82567850 0
82567851 0
82567852 0
82567853 0
82567854 0
82567855 0
82567856 0
82567857 0
82567858 0
82567859 0
82567860 0
82567861 0
82567862 0
82567863 0
82567864 0
82567865 0
82567866 0
82567867 0
82567868 0
82567869 0
82567870 0
82567871 0
82567872 0
82567873 0
82567874 0
82567875 0
82567876 0
82567877 0
82567878 0
82567879 0
82567880 0
82567881 0
82567882 0
82567883 0
82567884 0
82567885 0
82567886 0
82567887 0
82567888 0
82567889 0
82567890 0
82567891 0
82567892 0
82567893 0
82567894 0
82567895 0
82567896 0
82567897 0
82567898 0
82567899 0
82568000 0
82568001 0
82568002 0
82568003 0
82568004 0
82568005 0
82568006 0
82568007 0
82568008 0
82568009 0
82568010 0
82568011 0
82568012 0
82568013 0
82568014 0
82568015 0
82568016 0
82568017 0
82568018 0
82568019 0
82568020 0
82568021 0
82568022 0
82568023 0
82568024 0
82568025 0
82568026 0
82568027 0
82568028 0
82568029 0
82568030 0
82568031 0
82568032 0
82568033 0
82568034 0
82568035 0
82568036 0
82568037 0
82568038 0
82568039 0
82568040 0
82568041 0
82568042 0
82568043 0
82568044 0
82568045 0
82568046 0
82568047 0
82568048 0
82568049 0
82568050 0
82568051 0
82568052 0
82568053 0
82568054 0
82568055 0
82568056 0
82568057 0
82568058 0
82568059 0
82568060 0
82568061 0
82568062 0
82568063 0
82568064 0
82568065 0
82568066 0
82568067 0
82568068 0
82568069 0
82568070 0
82568071 0
82568072 0
82568073 0
82568074 0
82568075 0
82568076 0
82568077 0
82568078 0
82568079 0
82568080 0
82568081 0
82568082 0
82568083 0
82568084 0
82568085 0
82568086 0
82568087 0
82568088 0
82568089 0
82568090 0
82568091 0
82568092 0
82568093 0
82568094 0
82568095 0
82568096 0
82568097 0
82568098 0
82568099 0
82568200 0
82568201 0
82568202 0
82568203 0
82568204 0
82557935 0
82557936 0
82557937 0
33400006 0
33400552 0
33400329 0
33400526 0
33401611 0
33401318 0
33401319 0
33401613 0
33400020 0
33401661 0
33401612 0
33401629 0
33401323 0
33401630 0
33400330 0
33400331 0
33400332 0
33400333 0
33400334 0
33400335 0
33400336 0
33400337 0
33400338 0
33400339 0
33401324 0
33502131 0
33502130 0
30015070 0
82226085 0
82226084 0
82226075 0
45746015 0
45746033 0
45746034 0
45746870 0
45746902 0
45746868 0
45746853 0
45746865 0
45746854 0
45746855 0
45746856 0
45746857 0
45746858 0
45746859 0
30000315 0
83000076 0
83000079 0
83000078 0
83000077 0
#220925
15004108 0
25000081 0
......@@ -2064,7 +2359,6 @@
60001007 0
60001008 0
88990171 0
33400552 1
#210523
63790300 0
63790500 0
......@@ -3548,7 +3842,6 @@
14010120 1
14010206 1
33330093 1
33400006 1
33700311 1
33700903 1
#33700905 1
......@@ -4455,6 +4748,13 @@
25000105 0
25000403 0
14824018 0
90000013 0
90000014 0
90000015 0
90000016 0
90000017 0
90000018 0
90000020 0
#WILDEST
90700071 0
90700072 0
......
No preview for this file type
--均相扩散
--21.12.31
local m=11451654
local cm=_G["c"..m]
local cm,m=GetID()
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......@@ -23,10 +22,10 @@ function cm.filter0(c)
return c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToGrave()
end
function cm.fcheck(tp,sg,fc)
return sg:GetClassCount(Card.GetCode)==1
return sg:GetClassCount(Card.GetCode)<=1
end
function cm.gcheck(sg)
return sg:GetClassCount(Card.GetCode)==1
return sg:GetClassCount(Card.GetCode)<=1
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......
--穹顶煌刃 维修官
local m=14000373
local cm=_G["c"..m]
cm.named_with_Skayarder=1
function cm.initial_effect(c)
c:SetSPSummonOnce(m)
--special summon proc
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_HAND+LOCATION_DECK)
e1:SetCondition(cm.spcon)
e1:SetOperation(cm.spop)
e1:SetValue(1)
c:RegisterEffect(e1)
--copy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,2))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCondition(cm.cpcon)
e2:SetTarget(cm.cptg)
e2:SetOperation(cm.cpop)
c:RegisterEffect(e2)
--draw
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_DRAW)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_RELEASE)
e3:SetCountLimit(1,m)
e3:SetTarget(cm.tg)
e3:SetOperation(cm.op)
c:RegisterEffect(e3)
cm.release_effect=e3
end
function cm.Skay(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_Skayarder
end
function cm.spfilter(c)
return cm.Skay(c) and c:IsType(TYPE_MONSTER) and c:IsLevelAbove(8)
end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,0))
end
function cm.cefilter(c,e,tp,eg,ep,ev,re,r,rp)
if not (cm.Skay(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()) then return false end
local m=_G["c"..c:GetCode()]
if not m then return false end
local te=m.release_effect
local tg=nil
if te then
tg=te:GetTarget()
end
return not tg or tg and tg(e,tp,eg,ep,ev,re,r,rp,0)
end
function cm.cpcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end
function cm.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.cefilter(chkc,e,tp,eg,ep,ev,re,r,rp) end
if chk==0 then return Duel.IsExistingTarget(cm.cefilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,eg,ep,ev,re,r,rp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,cm.cefilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,eg,ep,ev,re,r,rp)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
local tc=g:GetFirst()
Duel.ClearTargetCard()
tc:CreateEffectRelation(e)
e:SetLabelObject(tc)
local m=_G["c"..tc:GetCode()]
local te=m.release_effect
local tg=te:GetTarget()
if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end
end
function cm.cpop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:IsRelateToEffect(e) then
local m=_G["c"..tc:GetCode()]
local te=m.release_effect
local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
Duel.BreakEffect()
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
\ No newline at end of file
......@@ -47,5 +47,5 @@ end
function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT+REASON_RULE)
Duel.SendtoHand(g,nil,REASON_RULE)
end
\ No newline at end of file
......@@ -47,5 +47,5 @@ end
function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_RULE)
Duel.SendtoGrave(g,REASON_RULE)
end
\ No newline at end of file
......@@ -13,29 +13,39 @@ function c33400114.initial_effect(c)
e1:SetOperation(c33400114.activate)
c:RegisterEffect(e1)
end
function c33400114.tfilter(c,e,tp)
return c:IsCode(33400011) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
function c33400114.tfilter(c,e,tp,tc)
return c:IsCode(33400011) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and Duel.GetLocationCountFromEx(tp,tp,tc,c)>0
end
function c33400114.filter(c,e,tp)
return c:IsSetCard(0x3341) and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
and Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)
end
function c33400114.chkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3341)
end
function c33400114.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33400114.filter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c33400114.filter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.SendtoGrave(g,REASON_COST)
e:SetLabel(100)
return true
end
function c33400114.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
if chk==0 then
if e:GetLabel()==100 then
return Duel.IsExistingMatchingCard(c33400114.filter,tp,LOCATION_MZONE,0,1,nil,e,tp)
else
return Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,nil)
end
end
if e:GetLabel() == 100 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c33400114.filter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.SendtoGrave(g,REASON_COST)
e:SetLabel(0)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c33400114.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c33400114.tfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
local sg=Duel.SelectMatchingCard(tp,c33400114.tfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,nil)
if sg:GetCount()>0 then
Duel.BreakEffect()
Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP)
......@@ -65,11 +75,11 @@ function c33400114.tgcon(e,tp,eg,ep,ev,re,r,rp)
end
function c33400114.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(e:GetLabelObject(),REASON_EFFECT)
local dg=Duel.GetMatchingGroup(c33400114.ss,tp,LOCATION_GRAVE,0,nil,e,tp)
local dg=Duel.GetMatchingGroup(aux.NecroValleyFilter(c33400114.ss),tp,LOCATION_GRAVE,0,nil,e,tp)
if dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(33400114,0)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c33400114.ss,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c33400114.ss),tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst()
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -1773,7 +1773,7 @@ function cm.SRoverDrawOp(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnCount()==1 then
ct=1
local eset={Duel.IsPlayerAffectedByEffect(tp,EFFECT_DRAW_COUNT)}
for _,te in pairs(eset) do if te:GetValue()>dt then dt=te:GetValue() end end
for _,te in pairs(eset) do if te:GetValue()>ct then ct=te:GetValue() end end
end
if ct>3 then return end
Duel.Hint(HINT_CARD,0,c:GetOriginalCode())
......
--CiNo.101 寂静荣誉方舟骑士·源望
function c79029526.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,6,4)
c:EnableReviveLimit()
--atk up
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(c79029526.atkval)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e2)
--Overlay
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(12744567,0))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,79029526)
e3:SetCost(c79029526.remct)
e3:SetTarget(c79029526.remtg)
e3:SetOperation(c79029526.remop)
c:RegisterEffect(e3)
--SpecialSummon
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(12744567,1))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_RECOVER)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetCountLimit(1,09029526)
e4:SetCondition(c79029526.spcon)
e4:SetTarget(c79029526.sptg)
e4:SetOperation(c79029526.spop)
c:RegisterEffect(e4)
--operator
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(52792430,1))
e5:SetCategory(CATEGORY_SPECIAL_SUMMON)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_DAMAGE_STEP_END)
e5:SetTarget(c79029526.sptg1)
e5:SetOperation(c79029526.spop1)
c:RegisterEffect(e5)
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c79029526.splimit)
c:RegisterEffect(e1)
end
aux.xyz_number[79029526]=101
function c79029526.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end
function c79029526.atkval(e,c)
return c:GetOverlayCount()*500
end
function c79029526.remct(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local x=c:GetOverlayCount()
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
c:RemoveOverlayCard(tp,x,x,REASON_COST)
end
function c79029526.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE)
end
function c79029526.remop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
local g2=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_GRAVE,nil)
local g3=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_HAND,nil)
local sg=Group.CreateGroup()
if g1:GetCount()>0 and ((g2:GetCount()==0 and g3:GetCount()==0) or Duel.SelectYesNo(tp,aux.Stringid(79029526,1))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local sg1=g1:Select(tp,1,1,nil)
Duel.HintSelection(sg1)
sg:Merge(sg1)
end
if g2:GetCount()>0 and ((sg:GetCount()==0 and g3:GetCount()==0) or Duel.SelectYesNo(tp,aux.Stringid(79029526,2))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg2=g2:Select(tp,1,1,nil)
Duel.HintSelection(sg2)
sg:Merge(sg2)
end
if g3:GetCount()>0 and (sg:GetCount()==0 or Duel.SelectYesNo(tp,aux.Stringid(79029526,3))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg3=g3:RandomSelect(tp,1)
sg:Merge(sg3)
end
local tc=sg:GetFirst()
while tc do
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
tc=sg:GetNext()
end
Duel.Overlay(e:GetHandler(),sg)
end
function c79029526.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetOverlayCount()>0
end
function c79029526.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,true) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
local rec=e:GetHandler():GetBaseAttack()
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(rec)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,rec)
end
function c79029526.ovfil(c)
return c:IsCanOverlay() and c:IsSetCard(0xa900)
end
function c79029526.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)>0 then
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Recover(p,d,REASON_EFFECT)
if Duel.IsExistingMatchingCard(c79029526.ovfil,tp,LOCATION_EXTRA,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(79029526,4)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local g1=Duel.SelectMatchingCard(tp,c79029526.ovfil,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
Duel.Overlay(e:GetHandler(),g1)
end
end
end
function c79029526.spfilter(c,e,tp)
return c:IsSetCard(0xa900) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c79029526.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c79029526.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_DECK)
end
function c79029526.spop1(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
if ft>2 then ft=2 end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c79029526.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_DECK,0,1,ft,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
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