Skip to content

Commit 9d837eb

Browse files
authored
Merge master into additionalpendulumsummon branch
1 parent 27df3c7 commit 9d837eb

373 files changed

Lines changed: 8434 additions & 1444 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

archetype_setcode_constants.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,11 @@ SET_REGENESIS = 0x1be
588588
SET_DRAGONTAIL = 0x1c0
589589
SET_YUMMY = 0x1c1
590590
SET_K9 = 0x1c4
591-
--Released but the official English name is unconfirmed
592-
--Pre-release archetypes
593591
SET_TELEPORT = 0x1c5
592+
--Released but the official English name is unconfirmed
594593
SET_IMPRISONED_DEITY = 0x1c6
595594
SET_ARTMEGIA = 0x1c7
595+
--Pre-release archetypes
596+
SET_DOOM_KING = 0x1c8
597+
SET_MAGNIFISTORM = 0x1c9
598+
SET_RB = 0x1ca

card_counter_constants.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ CARD_LABRYNTH_LABYRINTH = 33407125
5353
CARD_LIGHT_BARRIER = 73206827
5454
CARD_MAGICAL_MIDBREAKER = 71650854
5555
CARD_MAX_METALMORPH = 89812483
56-
CARD_MEDIUS_THE_INNOCENT = 101301008
56+
CARD_MEDIUS_THE_INNOCENT = 97556336
5757
CARD_MEMENTOAL_TECUHTLICA = 23288411
5858
CARD_MILLENNIUM_CROSS = 37613663
5959
CARD_MONSTER_REBORN = 83764718
60+
CARD_MYSTICAL_SPACE_TYPHOON = 5318639
6061
CARD_MYUTANT_ARSENAL = 7574904
6162
CARD_MYUTANT_BEAST = 34695290
6263
CARD_MYUTANT_MIST = 61089209

goat/c504700123.lua

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function s.initial_effect(c)
4545
end)
4646
end)
4747
end
48+
s.listed_names={73915052}
4849
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
4950
if chk==0 then return (Duel.GetCurrentChain(true)==0 and Duel.GetActivityCount(tp,ACTIVITY_SUMMON)==0
5051
and Duel.GetActivityCount(tp,ACTIVITY_FLIPSUMMON)==0 and Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0) or
@@ -53,7 +54,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
5354
e1:SetType(EFFECT_TYPE_FIELD)
5455
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
5556
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
56-
e1:SetReset(RESET_PHASE+PHASE_END)
57+
e1:SetReset(RESET_PHASE|PHASE_END)
5758
e1:SetTargetRange(1,0)
5859
e1:SetLabelObject(e)
5960
e1:SetTarget(s.sumlimit)
@@ -62,7 +63,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
6263
e2:SetType(EFFECT_TYPE_FIELD)
6364
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
6465
e2:SetCode(EFFECT_CANNOT_SUMMON)
65-
e2:SetReset(RESET_PHASE+PHASE_END)
66+
e2:SetReset(RESET_PHASE|PHASE_END)
6667
e2:SetTargetRange(1,0)
6768
Duel.RegisterEffect(e2,tp)
6869
local e3=e2:Clone()
@@ -71,7 +72,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
7172
local e4=Effect.CreateEffect(e:GetHandler())
7273
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_OATH)
7374
e4:SetDescription(aux.Stringid(id,1))
74-
e4:SetReset(RESET_PHASE+PHASE_END)
75+
e4:SetReset(RESET_PHASE|PHASE_END)
7576
e4:SetTargetRange(1,0)
7677
Duel.RegisterEffect(e4,tp)
7778
end
@@ -91,12 +92,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
9192
for i=1,4 do
9293
local token=Duel.CreateToken(tp,73915051+i)
9394
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
95+
--Cannot be tributed for a tribute summon
9496
local e1=Effect.CreateEffect(e:GetHandler())
97+
e1:SetDescription(3304)
9598
e1:SetType(EFFECT_TYPE_SINGLE)
9699
e1:SetCode(EFFECT_UNRELEASABLE_SUM)
97-
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
100+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
98101
e1:SetValue(1)
99-
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
102+
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
100103
token:RegisterEffect(e1,true)
101104
end
102105
Duel.SpecialSummonComplete()

official/c10515412.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
6565
e1:SetCondition(function() return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsType,TYPE_NORMAL),tp,LOCATION_MZONE,0,1,nil) end)
6666
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
6767
tc:RegisterEffect(e1)
68-
--Reset e1 when the card is activated (to allow effects of Continuous Spell/Traps to be used when they are face-up)
68+
--Reset e1 when the card is activated (to allow effects of Continuous Spell/Traps to be used when they are face-up)
6969
local e2=Effect.CreateEffect(e:GetHandler())
7070
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
7171
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
@@ -80,8 +80,14 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
8080
e3:SetCode(EVENT_LEAVE_FIELD_P)
8181
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
8282
e3:SetReset(RESET_EVENT|RESETS_STANDARD)
83-
e3:SetOperation(function(e) if e:GetLabelObject() then e:GetLabelObject():Reset() end end)
83+
e3:SetOperation(s.reseteffect)
8484
e3:SetLabelObject(e2)
8585
tc:RegisterEffect(e3)
8686
end
87-
end
87+
end
88+
function s.reseteffect(e,tp,eg,ep,ev,re,r,rp)
89+
local on_act_eff=e:GetLabelObject()
90+
if on_act_eff and not on_act_eff:IsDeleted() then
91+
on_act_eff:Reset()
92+
end
93+
end

official/c11082056.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
4242
end
4343
if Duel.SendtoGrave(mc,REASON_EFFECT)==0 or not mc:IsLocation(LOCATION_GRAVE) then return end
4444
local code=mc:GetCode()
45-
if mc:IsPreviousLocation(LOCATION_ONFIELD) and mc:IsPreviousPosition(POS_FACEUP) then
45+
if mc:IsPreviousLocation(LOCATION_ONFIELD) and mc:IsPreviousPosition(POS_FACEUP) then
4646
code=mc:GetPreviousCodeOnField()
4747
end
4848
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function s.initial_effect(c)
3232
e3:SetOperation(function(e) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT|REASON_REPLACE) end)
3333
c:RegisterEffect(e3)
3434
end
35-
s.listed_names={CARD_MEDIUS_THE_INNOCENT,101301054} --"Artmegia the Academy City of Divine Arts"
35+
s.listed_names={CARD_MEDIUS_THE_INNOCENT,74733322} --"Artmegia the Academy City of Divine Arts"
3636
s.listed_series={SET_ARTMEGIA}
3737
function s.thfilter(c)
3838
return c:IsCode(CARD_MEDIUS_THE_INNOCENT) and c:IsAbleToHand()
@@ -69,7 +69,7 @@ function s.fusmatop(e,tp,eg,ep,ev,re,r,rp)
6969
end
7070
end
7171
function s.repfilter(c,tp)
72-
return c:IsCode(101301054) and c:IsFaceup() and c:IsControler(tp) and c:IsOnField()
72+
return c:IsCode(74733322) and c:IsFaceup() and c:IsControler(tp) and c:IsOnField()
7373
and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
7474
end
7575
function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)

official/c11321089.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function s.drdestg(e,tp,eg,ep,ev,re,r,rp,chk)
7272
if chk==0 then return hc>0 and fc>0 and Duel.IsPlayerCanDraw(tp,hc) and #dg>=fc end
7373
Duel.SetTargetPlayer(tp)
7474
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,hc)
75-
Duel.SetOperationInfo(0,CATEGORY_DESTROY,#dg,fc,1-tp,LOCATION_ONFIELD)
75+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,fc,1-tp,LOCATION_ONFIELD)
7676
end
7777
function s.drdesop(e,tp,eg,ep,ev,re,r,rp)
7878
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp)
5656
local c=e:GetHandler()
5757
local rc=re:GetHandler()
5858
return re:IsMonsterEffect() and rc:IsRelateToEffect(re) and c:GetLinkedGroup():IsContains(rc) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
59-
end
59+
end

0 commit comments

Comments
 (0)