Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion card_counter_constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CARD_LABRYNTH_LABYRINTH = 33407125
CARD_LIGHT_BARRIER = 73206827
CARD_MAGICAL_MIDBREAKER = 71650854
CARD_MAX_METALMORPH = 89812483
CARD_MEDIUS_THE_INNOCENT = 101301008
CARD_MEDIUS_THE_INNOCENT = 97556336
CARD_MEMENTOAL_TECUHTLICA = 23288411
CARD_MILLENNIUM_CROSS = 37613663
CARD_MONSTER_REBORN = 83764718
Expand Down
4 changes: 2 additions & 2 deletions pre-release/c101301057.lua → official/c1122030.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function s.initial_effect(c)
e3:SetOperation(function(e) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT|REASON_REPLACE) end)
c:RegisterEffect(e3)
end
s.listed_names={CARD_MEDIUS_THE_INNOCENT,101301054} --"Artmegia the Academy City of Divine Arts"
s.listed_names={CARD_MEDIUS_THE_INNOCENT,74733322} --"Artmegia the Academy City of Divine Arts"
s.listed_series={SET_ARTMEGIA}
function s.thfilter(c)
return c:IsCode(CARD_MEDIUS_THE_INNOCENT) and c:IsAbleToHand()
Expand Down Expand Up @@ -69,7 +69,7 @@ function s.fusmatop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.repfilter(c,tp)
return c:IsCode(101301054) and c:IsFaceup() and c:IsControler(tp) and c:IsOnField()
return c:IsCode(74733322) and c:IsFaceup() and c:IsControler(tp) and c:IsOnField()
and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end
function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101301050.lua → official/c12067160.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=re:GetHandler()
return re:IsMonsterEffect() and rc:IsRelateToEffect(re) and c:GetLinkedGroup():IsContains(rc) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pre-release/c101301047.lua → official/c13289758.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ function s.detachop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and c:GetOverlayCount()>0 then
c:RemoveOverlayCard(tp,1,1,REASON_EFFECT)
end
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions pre-release/c101301012.lua → official/c23829452.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
--アルトメギアの獄神獣
--Imprisoned Deity Beast of Artmegia
--scripted by Naim
local CARD_NERVA=101301033
local s,id=GetID()
function s.initial_effect(c)
--You cannot Special Summon from the Extra Deck, except Fusion Monsters
Expand Down Expand Up @@ -41,9 +40,9 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
s.listed_series={SET_ARTMEGIA}
s.listed_names={CARD_NERVA}
s.listed_names={53589300} --"Nerva the Imprisoned Deity of Creation"
function s.fusionfilter(c)
return c:IsSetCard(SET_ARTMEGIA) or c:IsCode(CARD_NERVA)
return c:IsSetCard(SET_ARTMEGIA) or c:IsCode(53589300)
end
function s.thfilter(c,tp)
return c:IsSetCard(SET_ARTMEGIA) and c:IsSpellTrap() and c:IsAbleToHand()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pre-release/c101301042.lua → official/c41522092.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function s.initial_effect(c)
end
s.xyz_number=0
function s.xyzcheck(g,tp,xyz)
local mg=g:Filter(function(c) return not c:IsHasEffect(511001175) end,nil)
local mg=g:Filter(function(c) return not c:IsHasEffect(EFFECT_EQUIP_SPELL_XYZ_MAT) end,nil)
return mg:GetClassCount(Card.GetRank)==1
end
function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
Expand Down Expand Up @@ -83,4 +83,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e2)
end
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pre-release/c101208096.lua → official/c49604192.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function s.initial_effect(c)
e1:SetOperation(s.rmop)
c:RegisterEffect(e1)
end
s.listed_names={19899073,55397172,101208092}
s.listed_names={19899073,55397172,13332685}
--"Ame no Murakumo no Mitsurugi", "Futsu no Mitama no Mitsurugi", "Ame no Habakiri no Mitsurugi"
s.listed_series={SET_MITSURUGI}
function s.rmconfilter(c)
Expand All @@ -26,8 +26,8 @@ function s.rmcostrescon(sg)
return sg:GetClassCount(Card.GetOriginalCodeRule)==3
end
function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsOriginalCodeRule,3,false,s.rmcostrescon,nil,19899073,55397172,101208092) end
local g=Duel.SelectReleaseGroupCost(tp,Card.IsOriginalCodeRule,3,3,false,s.rmcostrescon,nil,19899073,55397172,101208092)
if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsOriginalCodeRule,3,false,s.rmcostrescon,nil,19899073,55397172,13332685) end
local g=Duel.SelectReleaseGroupCost(tp,Card.IsOriginalCodeRule,3,3,false,s.rmcostrescon,nil,19899073,55397172,13332685)
Duel.Release(g,REASON_COST)
end
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
4 changes: 2 additions & 2 deletions pre-release/c101208093.lua → official/c49721684.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function s.initial_effect(c)
e2:SetOperation(s.tdop)
c:RegisterEffect(e2)
end
s.listed_names={19899073,55397172,101208092}
s.listed_names={19899073,55397172,13332685}
--"Ame no Murakumo no Mitsurugi", "Futsu no Mitama no Mitsurugi", "Ame no Habakiri no Mitsurugi"
function s.tdconfilter(c,tp)
return c:IsPreviousCodeOnField(19899073,55397172,101208092) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
return c:IsPreviousCodeOnField(19899073,55397172,13332685) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pre-release/c101301030.lua → official/c54701958.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if #g>0 then
Duel.Destroy(g,REASON_EFFECT)
end
end
end
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions pre-release/c101301076.lua → official/c59983249.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=(cost_skip or not Duel.HasFlagEffect(tp,id))
and Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
--Destroy up to 2 Spells/Traps on the field
local b2=(cost_skip or not Duel.HasFlagEffect(tp,id+100))
local b2=(cost_skip or not Duel.HasFlagEffect(tp,id+1))
and Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
--Discard 1 random card from your opponent's hand
local b3=(cost_skip or not Duel.HasFlagEffect(tp,id+200))
local b3=(cost_skip or not Duel.HasFlagEffect(tp,id+2))
and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,0,LOCATION_HAND,1,nil,REASON_EFFECT)
--Destroy 1 face-down card on the field
local b4=(cost_skip or not Duel.HasFlagEffect(tp,id+300))
local b4=(cost_skip or not Duel.HasFlagEffect(tp,id+3))
and Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler())
--Place 1 card on the field on top of the Deck
local b5=(cost_skip or not Duel.HasFlagEffect(tp,id+400))
local b5=(cost_skip or not Duel.HasFlagEffect(tp,id+4))
and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
--Banish 1 card on the field
local b6=(cost_skip or not Duel.HasFlagEffect(tp,id+500))
local b6=(cost_skip or not Duel.HasFlagEffect(tp,id+5))
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
if chk==0 then e:SetLabel(0) return Duel.IsExistingMatchingCard(Card.IsTributeSummoned,tp,LOCATION_MZONE,0,1,nil)
and (b1 or b2 or b3 or b4 or b5 or b6) end
Expand All @@ -72,29 +72,29 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
elseif op==2 then
--Destroy up to 2 Spells/Traps on the field
e:SetCategory(CATEGORY_DESTROY)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1) end
local g=Duel.GetMatchingGroup(Card.IsSpellTrap,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
elseif op==3 then
--Discard 1 random card from your opponent's hand
e:SetCategory(CATEGORY_HANDES)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+200,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE|PHASE_END,0,1) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1)
elseif op==4 then
--Destroy 1 face-down card on the field
e:SetCategory(CATEGORY_DESTROY)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+300,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+3,RESET_PHASE|PHASE_END,0,1) end
local g=Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
elseif op==5 then
--Place 1 card on the field on top of the Deck
e:SetCategory(CATEGORY_TODECK)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+400,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+4,RESET_PHASE|PHASE_END,0,1) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_ONFIELD)
elseif op==6 then
--Banish 1 card on the field
e:SetCategory(CATEGORY_REMOVE)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+500,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+5,RESET_PHASE|PHASE_END,0,1) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_ONFIELD)
end
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions pre-release/c101301067.lua → official/c61944066.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function s.initial_effect(c)
e3a:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_LVCHANGE)
e3a:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3a:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e3a:SetCode(EVENT_CUSTOM+id+1)
e3a:SetCode(EVENT_CUSTOM+id)
e3a:SetRange(LOCATION_SZONE)
e3a:SetCountLimit(1)
e3a:SetCondition(function() return not Duel.IsPhase(PHASE_DAMAGE) end)
Expand All @@ -42,7 +42,7 @@ function s.initial_effect(c)
local g=Group.CreateGroup()
g:KeepAlive()
e3a:SetLabelObject(g)
--Register your Special Summoned Ritual monsters
--Register your Special Summoned Ritual Monsters
local e3b=Effect.CreateEffect(c)
e3b:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3b:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
Expand Down Expand Up @@ -113,13 +113,13 @@ function s.regsumop(e,tp,eg,ep,ev,re,r,rp)
local tg=eg:Filter(s.lvfilter,nil,e,tp)
if #tg>0 then
for tc in tg:Iter() do
tc:RegisterFlagEffect(id+1,RESET_CHAIN,0,1)
tc:RegisterFlagEffect(id,RESET_CHAIN,0,1)
end
local g=e:GetLabelObject():GetLabelObject()
if Duel.GetCurrentChain()==0 then g:Clear() end
g:Merge(tg)
g:Remove(function(c) return c:GetFlagEffect(id+1)==0 end,nil)
g:Remove(function(c) return c:GetFlagEffect(id)==0 end,nil)
e:GetLabelObject():SetLabelObject(g)
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+id+1,e,0,tp,tp,0)
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+id,e,0,tp,tp,0)
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions pre-release/c101301058.lua → official/c74011784.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ function s.initial_effect(c)
e2:SetOperation(s.negop)
c:RegisterEffect(e2)
end
s.listed_names={CARD_MEDIUS_THE_INNOCENT,101301054,id} --"Artmegia the Academy City of Divine Arts"
s.listed_names={CARD_MEDIUS_THE_INNOCENT,74733322,id} --"Artmegia the Academy City of Divine Arts"
s.listed_series={SET_ARTMEGIA}
function s.plthfilter(c,tohand_chk)
return (c:IsCode(101301054) and not c:IsForbidden()) or (tohand_chk and c:IsSetCard(SET_ARTMEGIA) and c:IsAbleToHand() and c:IsLocation(LOCATION_DECK) and not c:IsCode(id))
return (c:IsCode(74733322) and not c:IsForbidden()) or (tohand_chk and c:IsSetCard(SET_ARTMEGIA) and c:IsAbleToHand() and c:IsLocation(LOCATION_DECK) and not c:IsCode(id))
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local tohand_chk=Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,101301054),tp,LOCATION_ONFIELD,0,1,nil)
local tohand_chk=Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,74733322),tp,LOCATION_ONFIELD,0,1,nil)
return Duel.IsExistingMatchingCard(s.plthfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil,tohand_chk)
end
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tohand_chk=Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,101301054),tp,LOCATION_ONFIELD,0,1,nil)
local tohand_chk=Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,74733322),tp,LOCATION_ONFIELD,0,1,nil)
local hint_desc=tohand_chk and aux.Stringid(id,2) or HINTMSG_TOFIELD
Duel.Hint(HINT_SELECTMSG,tp,hint_desc)
local sc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.plthfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,tohand_chk):GetFirst()
if not sc then return end
if sc:IsCode(101301054) then
if sc:IsCode(74733322) then
if not tohand_chk then
Duel.MoveToField(sc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
else
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions pre-release/c101301046.lua → official/c77894049.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ function s.initial_effect(c)
Duel.RegisterEffect(ge1,0)
end)
end
s.listed_names={28168628} -- "Rock of the Vanquisher"
s.listed_names={28168628} --"Rock of the Vanquisher"
s.listed_series={SET_VANQUISH_SOUL}
function s.regop(e,tp,eg,ep,ev,re,r,rp)
local a,b=Duel.GetBattleMonster(0)
if (a and a:IsSetCard(SET_VANQUISH_SOUL)) or (b and b:IsSetCard(SET_VANQUISH_SOUL)) then
Duel.RegisterFlagEffect(0,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(0,id+1,RESET_PHASE|PHASE_END,0,1)
end
end
function s.ovfilter(c,tp,lc)
return (c:IsSetCard(SET_VANQUISH_SOUL,lc,SUMMON_TYPE_XYZ,tp) or c:IsCode(28168628)) and c:IsFaceup()
end
function s.xyzop(e,tp,chk)
if chk==0 then return not Duel.HasFlagEffect(tp,id) and Duel.HasFlagEffect(0,id+100) end
if chk==0 then return not Duel.HasFlagEffect(tp,id) and Duel.HasFlagEffect(0,id+1) end
return Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,EFFECT_FLAG_OATH,1)
end
function s.attrcon(attr)
Expand All @@ -77,4 +77,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
end
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions pre-release/c101301068.lua → official/c98349765.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function s.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(-100)
local b1=not Duel.HasFlagEffect(tp,id)
and Duel.IsExistingTarget(aux.AND(Card.IsAttackPos,Card.IsCanChangePosition),tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
local b2=not Duel.HasFlagEffect(tp,id+100) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
local b2=not Duel.HasFlagEffect(tp,id+1) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_SUPER_QUANT),tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
local b3=not Duel.HasFlagEffect(tp,id+200)
local b3=not Duel.HasFlagEffect(tp,id+2)
and (e:GetHandler():IsLocation(LOCATION_SZONE) or Duel.GetLocationCount(tp,LOCATION_SZONE)>=2)
and Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil)
if chk==0 then return b1 or b2 or b3 end
Expand All @@ -39,11 +39,11 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local cost_skip=e:GetLabel()~=-100
local b1=(cost_skip or not Duel.HasFlagEffect(tp,id))
and Duel.IsExistingTarget(aux.AND(Card.IsAttackPos,Card.IsCanChangePosition),tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
local b2=(cost_skip or (not Duel.HasFlagEffect(tp,id+100)
local b2=(cost_skip or (not Duel.HasFlagEffect(tp,id+1)
and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_SUPER_QUANT),tp,LOCATION_MZONE,0,1,nil)))
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
local b3=(cost_skip or not Duel.HasFlagEffect(tp,id+200))
local b3=(cost_skip or not Duel.HasFlagEffect(tp,id+2))
and (not e:IsHasType(EFFECT_TYPE_ACTIVATE) or e:GetHandler():IsLocation(LOCATION_SZONE) or Duel.GetLocationCount(tp,LOCATION_SZONE)>=2)
and Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil)
if chk==0 then e:SetLabel(0) return b1 or b2 or b3 end
Expand All @@ -62,12 +62,12 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
elseif op==2 then
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
e:SetProperty(0)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
elseif op==3 then
e:SetCategory(0)
e:SetProperty(0)
if not cost_skip then Duel.RegisterFlagEffect(tp,id+200,RESET_PHASE|PHASE_END,0,1) end
if not cost_skip then Duel.RegisterFlagEffect(tp,id+2,RESET_PHASE|PHASE_END,0,1) end
end
end
function s.effop(e,tp,eg,ep,ev,re,r,rp)
Expand Down
File renamed without changes.