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
5 changes: 3 additions & 2 deletions archetype_setcode_constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,13 @@ SET_TELEPORT = 0x1c5
SET_POWER_PATRON = 0x1c6
SET_ARTMAGE = 0x1c7
SET_RB = 0x1ca
--Released but the official English name is unconfirmed
SET_DRAGONTAIL = 0x1c0
SET_YUMMY = 0x1c1
SET_K9 = 0x1c4
--Pre-release archetypes
SET_DOOM_KING = 0x1c8
SET_MAGNIFISTORM = 0x1c9
SET_DOOM_Z = 0x1cb
--Released but the official English name is unconfirmed
--
--Pre-release archetypes
SET_HECATONCHEIRE = 0x1cc
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.
7 changes: 4 additions & 3 deletions pre-release/c101302063.lua → official/c20508881.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ function s.thfilter(c)
return c:IsCode(CARD_MYSTICAL_SPACE_TYPHOON) and c:IsAbleToHand()
end
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsPlayerCanDraw(tp,2) and not Duel.HasFlagEffect(tp,id)
local b2=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) and not Duel.HasFlagEffect(tp,id+100)
local b1=not Duel.HasFlagEffect(tp,id) and Duel.IsPlayerCanDraw(tp,2)
local b2=not Duel.HasFlagEffect(tp,id+1)
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil)
if chk==0 then return b1 or b2 end
local op=Duel.SelectEffect(tp,
{b1,aux.Stringid(id,2)},
Expand All @@ -47,7 +48,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,1,tp,1)
elseif op==2 then
e:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE)
end
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions pre-release/c101302072.lua → official/c28531163.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
--Apocaries
--scripted by Naim
local s,id=GetID()
local COUNTER_C=0x215
local COUNTER_CARIES=0x215
function s.initial_effect(c)
c:EnableCounterPermit(COUNTER_C)
c:EnableCounterPermit(COUNTER_CARIES)
--When this card is activated: Place C Counters on this card equal to the number of cards your opponent controls
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
Expand All @@ -13,7 +13,7 @@ function s.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH)
e1:SetTarget(s.target)
e1:SetOperation(function(e,tp) e:GetHandler():AddCounter(COUNTER_C,Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)) end)
e1:SetOperation(function(e,tp) e:GetHandler():AddCounter(COUNTER_CARIES,Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)) end)
c:RegisterEffect(e1)
--Apply effects to a target based on the number of C Counters removed from this card
local e2=Effect.CreateEffect(c)
Expand All @@ -25,29 +25,29 @@ function s.initial_effect(c)
e2:SetOperation(s.effop)
c:RegisterEffect(e2)
end
s.counter_place_list={COUNTER_C}
s.counter_place_list={COUNTER_CARIES}
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)
if chk==0 then return ct>0 and Duel.IsCanAddCounter(tp,COUNTER_C,ct,c) end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,c,1,COUNTER_C,ct)
if chk==0 then return ct>0 and Duel.IsCanAddCounter(tp,COUNTER_CARIES,ct,c) end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,c,1,COUNTER_CARIES,ct)
end
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,COUNTER_C,1,REASON_COST)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,COUNTER_CARIES,1,REASON_COST)
and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_APPLYTO)
local tc=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
local b1=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_C,1,REASON_COST)
local b2=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_C,2,REASON_COST) and not tc:IsAttack(0)
local b3=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_C,3,REASON_COST) and tc:IsNegatableMonster()
local b4=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_C,4,REASON_COST)
local b1=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_CARIES,1,REASON_COST)
local b2=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_CARIES,2,REASON_COST) and not tc:IsAttack(0)
local b3=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_CARIES,3,REASON_COST) and tc:IsNegatableMonster()
local b4=Duel.IsCanRemoveCounter(tp,1,0,COUNTER_CARIES,4,REASON_COST)
local ct=Duel.SelectEffect(tp,
{b1,aux.Stringid(id,2)},
{b2,aux.Stringid(id,3)},
{b3,aux.Stringid(id,4)},
{b4,aux.Stringid(id,5)})
Duel.RemoveCounter(tp,1,1,COUNTER_C,ct,REASON_COST)
Duel.RemoveCounter(tp,1,1,COUNTER_CARIES,ct,REASON_COST)
e:SetLabel(ct)
if (ct==1 or ct==2) then
e:SetCategory(CATEGORY_ATKCHANGE)
Expand Down
6 changes: 3 additions & 3 deletions pre-release/c101302069.lua → official/c28653611.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function s.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(-100)
local b1=not Duel.HasFlagEffect(tp,id)
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil)
local b2=not Duel.HasFlagEffect(tp,id+100)
local b2=not Duel.HasFlagEffect(tp,id+1)
and Duel.CheckReleaseGroupCost(tp,nil,1,false,aux.ReleaseCheckMMZ,nil)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,nil,e,tp)
if chk==0 then return b1 or b2 end
Expand All @@ -40,7 +40,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local cost_skip=e:GetLabel()~=-100
local b1=(cost_skip or not Duel.HasFlagEffect(tp,id))
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,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 (not cost_skip or Duel.GetLocationCount(tp,LOCATION_MZONE)>0)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,nil,e,tp)
if chk==0 then e:SetLabel(0) return b1 or b2 end
Expand All @@ -62,7 +62,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
elseif op==2 then
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
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_HAND|LOCATION_DECK|LOCATION_GRAVE)
end
end
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pre-release/c101302066.lua → official/c29876299.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ end
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=not Duel.HasFlagEffect(tp,id)
and Duel.IsPlayerCanDraw(tp,2)
local b2=not Duel.HasFlagEffect(tp,id+100)
local b2=not Duel.HasFlagEffect(tp,id+1)
and Duel.IsExistingMatchingCard(Card.IsReleasableByEffect,tp,0,LOCATION_MZONE,1,nil)
if chk==0 then return b1 or b2 end
local op=Duel.SelectEffect(tp,
Expand All @@ -77,7 +77,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,tp,2)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,1,tp,1)
elseif op==2 then
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
e:SetCategory(CATEGORY_RELEASE)
Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,1-tp,LOCATION_MZONE)
end
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.
10 changes: 5 additions & 5 deletions official/c36849933.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ function s.initial_effect(c)
e2:SetCondition(function() return Duel.IsMainPhase() end)
e2:SetTarget(Ritual.Target(ritual_params))
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
c:RegisterEffect(e2)
end
s.listed_series={SET_MEGALITH}
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c100200277.lua → official/c40725446.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--熒焅聖 アレクゥス
--Alekus the Shining Stunner Saint
--Arequus the Shining Mars Saint
--scripted by pyrQ
local s,id=GetID()
function s.initial_effect(c)
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.
10 changes: 5 additions & 5 deletions official/c63056220.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function s.initial_effect(c)
e2:SetCountLimit(1,id)
e2:SetTarget(Ritual.Target(ritual_params))
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
c:RegisterEffect(e2)
end
s.listed_series={SET_MEGALITH}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions pre-release/c101302061.lua → official/c67115133.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ function s.thfilter2(c)
return c:IsCode(CARD_MYSTICAL_SPACE_TYPHOON) and c:IsAbleToHand()
end
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.thfilter1,tp,LOCATION_DECK,0,1,nil) and not Duel.HasFlagEffect(tp,id)
local b2=Duel.IsExistingMatchingCard(s.thfilter2,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) and not Duel.HasFlagEffect(tp,id+100)
local b1=not Duel.HasFlagEffect(tp,id)
and Duel.IsExistingMatchingCard(s.thfilter1,tp,LOCATION_DECK,0,1,nil)
local b2=not Duel.HasFlagEffect(tp,id+1)
and Duel.IsExistingMatchingCard(s.thfilter2,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil)
if chk==0 then return b1 or b2 end
local op=Duel.SelectEffect(tp,
{b1,aux.Stringid(id,2)},
Expand All @@ -45,7 +47,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
elseif op==2 then
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE)
end
end
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.
6 changes: 3 additions & 3 deletions pre-release/c101302077.lua → official/c80208225.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
--星辰の刺毒
--Dragontail Sting
--Dracotail Sting
--scripted by pyrQ
local s,id=GetID()
function s.initial_effect(c)
--Banish 1 monster and/or 1 Spell/Trap from your opponent's GY, then you can place 1 "Dragontail" card from your GY or banishment on the bottom of the Deck, except "Dragontail Sting", then draw 1 card
--Banish 1 monster and/or 1 Spell/Trap from your opponent's GY, then you can place 1 "Dracotail" card from your GY or banishment on the bottom of the Deck, except "Dracotail Sting", then draw 1 card
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_TODECK+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
c:RegisterEffect(e1)
end
s.listed_series={SET_DRAGONTAIL}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pre-release/c101302011.lua → official/c81650695.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
s.listed_series={SET_DOOM_Z}
s.listed_names={101302044} --"Jupiter the Power Patron of Destruction"
s.listed_names={68231287} --"Jupiter the Power Patron of Destruction"
function s.xyzmatfilter(c,e,tp)
local mustg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ)
return #mustg<=1 and c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:HasLevel()
Expand Down
6 changes: 3 additions & 3 deletions pre-release/c101302023.lua → official/c84477320.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
--星辰響手プリクル
--Dragontail Phrixl
--Dracotail Phrixl
--scripted by pyrQ
local s,id=GetID()
function s.initial_effect(c)
--Special Summon 1 "Dragontail" monster from your GY, then return 1 monster you control to the hand
--Special Summon 1 "Dracotail" monster from your GY, then return 1 monster you control to the hand
local e1a=Effect.CreateEffect(c)
e1a:SetDescription(aux.Stringid(id,0))
e1a:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND)
Expand All @@ -17,7 +17,7 @@ function s.initial_effect(c)
local e1b=e1a:Clone()
e1b:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e1b)
--Set 1 "Dragontail" Spell/Trap from your Deck
--Set 1 "Dracotail" Spell/Trap from your Deck
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
Expand Down
File renamed without changes.
File renamed without changes.
17 changes: 7 additions & 10 deletions pre-release/c101302033.lua → official/c8805661.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ function s.initial_effect(c)
e2:SetCondition(function() return Duel.IsMainPhase() end)
e2:SetCost(Cost.HardOncePerChain(id))
e2:SetTarget(Ritual.Target(ritual_params))
e2:SetOperation(s.ritop(Ritual.Operation(ritual_params)))
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
c:RegisterEffect(e2)
end
s.listed_series={SET_MEGALITH}
Expand All @@ -54,12 +59,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end
function s.ritop(default_operation)
return function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
default_operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
File renamed without changes.
10 changes: 5 additions & 5 deletions official/c90444325.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function s.initial_effect(c)
e2:SetCountLimit(1,id)
e2:SetTarget(Ritual.Target(ritual_params))
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Ritual.Operation(ritual_params)(e,tp,eg,ep,ev,re,r,rp)
end
end)
c:RegisterEffect(e2)
end
s.listed_series={SET_MEGALITH}
Expand Down
4 changes: 2 additions & 2 deletions pre-release/c101302068.lua → official/c92269002.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetMatchingGroup(s.spcostfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil)
local lg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp,g)
local _,min_link=lg:GetMinGroup(Card.GetLink)
local b2=not Duel.HasFlagEffect(tp,id+100) and min_link and min_link<=#rg
local b2=not Duel.HasFlagEffect(tp,id+1) and min_link and min_link<=#rg
if chk==0 then return b1 or b2 end
local op=Duel.SelectEffect(tp,
{b1,aux.Stringid(id,1)},
Expand All @@ -43,7 +43,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
elseif op==2 then
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
local link_map={}
for lc in lg:Iter() do
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions pre-release/c101302065.lua → official/c93481594.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function s.spfilter(c,e,tp)
return c:IsSetCard(SET_SOLFACHORD) and c:IsType(TYPE_PENDULUM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=not Duel.HasFlagEffect(tp,id+100)
local b1=not Duel.HasFlagEffect(tp,id+1)
and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler(),REASON_EFFECT)
and Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil):GetClassCount(Card.GetScale)>=2
local b2=not Duel.HasFlagEffect(tp,id+200)
local b2=not Duel.HasFlagEffect(tp,id+2)
and Pendulum.PlayerCanGainAdditionalPendulumSummon(tp,id)
local b3=not Duel.HasFlagEffect(tp,id+300)
local b3=not Duel.HasFlagEffect(tp,id+3)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>=2
and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_PZONE,0,2,nil,e,tp)
Expand All @@ -36,7 +36,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
{b2,aux.Stringid(id,2)},
{b3,aux.Stringid(id,3)})
e:SetLabel(op)
Duel.RegisterFlagEffect(tp,id+op*100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+op,RESET_PHASE|PHASE_END,0,1)
if op==1 then
e:SetCategory(CATEGORY_HANDES+CATEGORY_TOHAND+CATEGORY_SEARCH)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Expand Down Expand Up @@ -82,4 +82,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
end
8 changes: 5 additions & 3 deletions pre-release/c101302062.lua → official/c94103142.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ function s.thfilter(c)
return c:IsCode(CARD_MYSTICAL_SPACE_TYPHOON) and c:IsAbleToHand()
end
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) and not Duel.HasFlagEffect(tp,id)
local b2=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) and not Duel.HasFlagEffect(tp,id+100)
local b1=not Duel.HasFlagEffect(tp,id)
and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil)
local b2=not Duel.HasFlagEffect(tp,id+1)
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil)
if chk==0 then return b1 or b2 end
local op=Duel.SelectEffect(tp,
{b1,aux.Stringid(id,2)},
Expand All @@ -46,7 +48,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
elseif op==2 then
e:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE)
end
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.