Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts-888
Commits
db98454b
Commit
db98454b
authored
Mar 13, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' from upstream
parents
67372a05
a36b4d20
Changes
44
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
57 additions
and
85 deletions
+57
-85
c11039171.lua
c11039171.lua
+1
-1
c13076804.lua
c13076804.lua
+1
-6
c13735899.lua
c13735899.lua
+1
-0
c15001940.lua
c15001940.lua
+1
-1
c17078030.lua
c17078030.lua
+1
-1
c22610082.lua
c22610082.lua
+1
-2
c22723778.lua
c22723778.lua
+1
-1
c24672164.lua
c24672164.lua
+1
-1
c26050548.lua
c26050548.lua
+1
-1
c28497830.lua
c28497830.lua
+1
-1
c31313405.lua
c31313405.lua
+1
-1
c3137279.lua
c3137279.lua
+1
-1
c32828466.lua
c32828466.lua
+1
-1
c33250142.lua
c33250142.lua
+4
-0
c3410461.lua
c3410461.lua
+1
-1
c38264974.lua
c38264974.lua
+1
-1
c42717221.lua
c42717221.lua
+1
-1
c464362.lua
c464362.lua
+1
-1
c48626373.lua
c48626373.lua
+0
-8
c49565413.lua
c49565413.lua
+1
-6
c64599569.lua
c64599569.lua
+1
-1
c67048711.lua
c67048711.lua
+1
-1
c67196946.lua
c67196946.lua
+1
-1
c6733059.lua
c6733059.lua
+3
-1
c68073522.lua
c68073522.lua
+1
-8
c68299524.lua
c68299524.lua
+1
-1
c7165085.lua
c7165085.lua
+2
-4
c74506079.lua
c74506079.lua
+1
-1
c7602800.lua
c7602800.lua
+1
-1
c77565204.lua
c77565204.lua
+1
-2
c79229522.lua
c79229522.lua
+1
-1
c80889750.lua
c80889750.lua
+1
-1
c81171949.lua
c81171949.lua
+1
-2
c82734805.lua
c82734805.lua
+1
-1
c84058253.lua
c84058253.lua
+1
-1
c84389640.lua
c84389640.lua
+1
-1
c87116928.lua
c87116928.lua
+1
-1
c89016236.lua
c89016236.lua
+1
-1
c89771220.lua
c89771220.lua
+2
-2
c95973569.lua
c95973569.lua
+2
-1
c96633955.lua
c96633955.lua
+0
-7
c99137266.lua
c99137266.lua
+0
-7
constant.lua
constant.lua
+1
-0
procedure.lua
procedure.lua
+9
-2
No files found.
c11039171.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c11039171
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFunRep
(
c
,
30068120
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xa9
),
1
,
63
,
false
,
false
)
aux
.
AddFusionProcCodeFunRep
(
c
,
30068120
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xa9
),
1
,
127
,
false
,
false
)
--spsummon condition
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c13076804.lua
View file @
db98454b
...
...
@@ -47,13 +47,8 @@ function s.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
s
.
checkfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
s
.
checkfilter
,
1
,
nil
)
then
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
s
.
rmcon
(
e
)
return
Duel
.
GetFlagEffect
(
0
,
id
)
>
0
...
...
c13735899.lua
View file @
db98454b
...
...
@@ -39,6 +39,7 @@ function c13735899.cfilter(c,e)
local
typ
,
se
=
c
:
GetSpecialSummonInfo
(
SUMMON_INFO_TYPE
,
SUMMON_INFO_REASON_EFFECT
)
if
not
se
then
return
false
end
local
sc
=
se
:
GetHandler
()
local
tp
=
e
:
GetHandlerPlayer
()
return
typ
&
TYPE_MONSTER
~=
0
and
se
:
IsActivated
()
and
c
:
IsFaceup
()
and
(
c
:
GetOriginalRace
()
==
sc
:
GetOriginalRace
()
or
c
==
sc
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
Duel
.
IsExistingMatchingCard
(
c13735899
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
)
...
...
c15001940.lua
View file @
db98454b
...
...
@@ -47,7 +47,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
>
0
end
function
s
.
relfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0x196
)
and
c
:
Is
Faceup
()
and
c
:
Is
ReleasableByEffect
()
return
c
:
IsSetCard
(
0x196
)
and
c
:
IsReleasableByEffect
()
and
Duel
.
IsExistingMatchingCard
(
s
.
relfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
,
tp
,
c
)
end
function
s
.
relfilter2
(
c
,
tp
,
ec
)
...
...
c17078030.lua
View file @
db98454b
...
...
@@ -22,7 +22,7 @@ function c17078030.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
t
=
{}
local
f
=
math.floor
((
lp
)
/
1000
)
local
l
=
1
while
l
<=
f
and
l
<=
2
0
do
while
l
<=
f
and
l
<=
2
55
do
t
[
l
]
=
l
*
1000
l
=
l
+
1
end
...
...
c22610082.lua
View file @
db98454b
...
...
@@ -26,7 +26,6 @@ end
function
c22610082
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
c
:
CancelToGrave
()
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
,
tp
,
true
)
end
end
c22723778.lua
View file @
db98454b
...
...
@@ -3,7 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--material
aux
.
AddFusionProcCodeFunRep
(
c
,
99458769
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_FIEND
),
2
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
99458769
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_FIEND
),
2
,
127
,
true
,
true
)
--des
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
c24672164.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c24672164
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x109b
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x9b
),
1
,
63
,
true
)
aux
.
AddFusionProcFunFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x109b
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x9b
),
1
,
127
,
true
)
--summon success
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c26050548.lua
View file @
db98454b
...
...
@@ -3,7 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep2
(
c
,
s
.
mfilter
,
2
,
63
,
true
)
aux
.
AddFusionProcFunRep2
(
c
,
s
.
mfilter
,
2
,
127
,
true
)
--atk down
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c28497830.lua
View file @
db98454b
...
...
@@ -3,7 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--material
aux
.
AddFusionProcCodeFunRep
(
c
,
92003832
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x192
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
92003832
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x192
),
1
,
127
,
true
,
true
)
--equip
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
c31313405.lua
View file @
db98454b
...
...
@@ -85,7 +85,7 @@ function c31313405.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c31313405
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
GetBaseAttack
()
>
0
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
GetBaseAttack
()
>
0
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
c31313405
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c31313405
.
cfilter
(
chkc
,
e
,
1
-
tp
)
end
...
...
c3137279.lua
View file @
db98454b
...
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
s
.
cfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
...
...
c32828466.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c32828466
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--fusion material
aux
.
AddFusionProcFunFunRep
(
c
,
c32828466
.
mfilter1
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_WARRIOR
),
1
,
63
,
true
)
aux
.
AddFusionProcFunFunRep
(
c
,
c32828466
.
mfilter1
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_WARRIOR
),
1
,
127
,
true
)
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c33250142.lua
View file @
db98454b
...
...
@@ -6,6 +6,7 @@ function c33250142.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
c33250142
.
splimit
)
c
:
RegisterEffect
(
e0
)
--to hand (deck)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -32,6 +33,9 @@ function c33250142.initial_effect(c)
e2
:
SetOperation
(
c33250142
.
thop2
)
c
:
RegisterEffect
(
e2
)
end
function
c33250142
.
splimit
(
e
,
se
,
sp
,
st
)
return
se
:
GetHandler
():
IsCode
(
89771220
)
end
function
c33250142
.
cfilter1
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsControler
(
tp
)
end
...
...
c3410461.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c3410461
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFunRep
(
c
,
68468459
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
68468459
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
),
1
,
127
,
true
,
true
)
aux
.
AddContactFusionProcedure
(
c
,
c3410461
.
cfilter
,
LOCATION_MZONE
,
LOCATION_MZONE
,
Duel
.
SendtoGrave
,
REASON_COST
)
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
...
...
c38264974.lua
View file @
db98454b
...
...
@@ -3,7 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--material
aux
.
AddFusionProcCodeFunRep
(
c
,
4796100
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_ILLUSION
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
4796100
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_ILLUSION
),
1
,
127
,
true
,
true
)
--change name
aux
.
EnableChangeCode
(
c
,
4796100
,
LOCATION_GRAVE
+
LOCATION_MZONE
)
--multi-attack
...
...
c42717221.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c42717221
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFunRep
(
c
,
21830679
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionType
,
TYPE_LINK
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
21830679
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionType
,
TYPE_LINK
),
1
,
127
,
true
,
true
)
--mill + atk
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
42717221
,
0
))
...
...
c464362.lua
View file @
db98454b
...
...
@@ -3,7 +3,7 @@ function c464362.initial_effect(c)
c
:
SetUniqueOnField
(
1
,
0
,
464362
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFunRep
(
c
,
30068120
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xa9
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
30068120
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xa9
),
1
,
127
,
true
,
true
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
...
...
c48626373.lua
View file @
db98454b
...
...
@@ -20,7 +20,6 @@ function s.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_CUSTOM
+
id
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e2
:
SetCondition
(
s
.
mtcon
)
e2
:
SetOperation
(
s
.
mtop
)
c
:
RegisterEffect
(
e2
)
aux
.
RegisterMergedDelayedEvent
(
c
,
id
,
EVENT_REMOVE
)
...
...
@@ -53,13 +52,6 @@ function s.xyzop(e,tp,chk)
or
Duel
.
GetCustomActivityCount
(
id
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
)
end
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
s
.
remfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
eg
:
IsExists
(
s
.
remfilter
,
1
,
nil
)
end
function
s
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
(
c
:
IsRelateToChain
()
and
c
:
IsType
(
TYPE_XYZ
))
then
return
end
...
...
c49565413.lua
View file @
db98454b
...
...
@@ -44,13 +44,8 @@ function s.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
s
.
checkfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
s
.
checkfilter
,
1
,
nil
)
then
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
Duel
.
RegisterFlagEffect
(
0
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
s
.
rmcon
(
e
)
return
Duel
.
GetFlagEffect
(
0
,
id
)
>
0
...
...
c64599569.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c64599569
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--fusion material
aux
.
AddFusionProcCodeFunRep
(
c
,
70095154
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
70095154
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
),
1
,
127
,
true
,
true
)
--spsummon condition
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c67048711.lua
View file @
db98454b
...
...
@@ -36,7 +36,7 @@ function c67048711.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Draw
(
tp
,
3
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
c67048711
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
Duel
.
Destroy
(
g
,
REASON_
EFFECT
)
Duel
.
Destroy
(
g
,
REASON_
RULE
)
end
end
end
...
...
c67196946.lua
View file @
db98454b
...
...
@@ -14,7 +14,7 @@ function c67196946.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
lp
=
Duel
.
GetLP
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsLevelAbove
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
,
2
)
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetLevel
)
local
maxlv
=
tg
:
GetFirst
():
GetLevel
(
)
local
maxlv
=
math.min
(
tg
:
GetFirst
():
GetLevel
(),
255
)
local
t
=
{}
local
l
=
1
while
l
<
maxlv
and
l
*
500
<=
lp
do
...
...
c6733059.lua
View file @
db98454b
...
...
@@ -42,7 +42,9 @@ function c6733059.cost(e,tp,eg,ep,ev,re,r,rp,chk)
tc
=
tg
:
GetNext
()
end
local
pc
=
1
for
i
=
1
,
12
do
local
_
,
lvmax
=
tg
:
GetMaxGroup
(
Card
.
GetLevel
)
local
max
=
math.min
(
lvmax
,
255
)
for
i
=
1
,
max
do
if
lvt
[
i
]
then
lvt
[
i
]
=
nil
lvt
[
pc
]
=
i
pc
=
pc
+
1
end
end
lvt
[
pc
]
=
nil
...
...
c68073522.lua
View file @
db98454b
...
...
@@ -12,20 +12,13 @@ function c68073522.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c68073522
.
condition
)
e2
:
SetTarget
(
c68073522
.
target
)
e2
:
SetOperation
(
c68073522
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c68073522
.
filter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c68073522
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c68073522
.
filter
,
1
,
nil
)
end
function
c68073522
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ct
=
eg
:
FilterCount
(
c68073522
.
filter
,
nil
)
local
ct
=
#
eg
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
ct
*
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
0
,
0
,
tp
,
ct
*
500
)
...
...
c68299524.lua
View file @
db98454b
...
...
@@ -39,7 +39,7 @@ function c68299524.cost(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
c68299524
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
tg
,
atk
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
maxc
=
math.min
(
Duel
.
GetLP
(
tp
),
atk
)
local
maxc
=
math.min
(
Duel
.
GetLP
(
tp
),
atk
,
25500
)
local
ct
=
math.floor
(
maxc
/
100
)
local
t
=
{}
for
i
=
1
,
ct
do
...
...
c7165085.lua
View file @
db98454b
...
...
@@ -24,8 +24,7 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
c
:
CancelToGrave
()
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
,
tp
,
true
)
end
return
end
...
...
@@ -74,7 +73,6 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
if
c
:
IsRelateToEffect
(
e
)
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
c
:
CancelToGrave
()
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
,
tp
,
true
)
end
end
c74506079.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c74506079
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep2
(
c
,
c74506079
.
ffilter
,
2
,
63
,
true
)
aux
.
AddFusionProcFunRep2
(
c
,
c74506079
.
ffilter
,
2
,
127
,
true
)
--summon success
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c7602800.lua
View file @
db98454b
...
...
@@ -38,7 +38,7 @@ function c7602800.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
FilterCount
(
c7602800
.
cfilter
,
nil
,
tp
)
>
0
end
function
c7602800
.
spfilter
(
c
,
e
,
tp
,
atk
)
return
(
c
:
IsSetCard
(
0x33
)
and
c
:
GetAttack
()
<
atk
or
c
:
IsCode
(
9012916
))
return
(
c
:
IsSetCard
(
0x33
)
or
c
:
IsCode
(
9012916
))
and
c
:
GetAttack
()
<
atk
and
(
not
c
:
IsLocation
(
LOCATION_REMOVED
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
...
...
c77565204.lua
View file @
db98454b
...
...
@@ -110,7 +110,6 @@ function c77565204.procop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c77565204
.
procfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
code
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
tc
:
SetStatus
(
STATUS_FUTURE_FUSION
,
true
)
local
mat
=
e
:
GetLabelObject
():
GetLabelObject
()
for
mc
in
aux
.
Next
(
mat
)
do
if
mc
:
GetFlagEffect
(
77565204
)
>
0
then
...
...
@@ -118,7 +117,7 @@ function c77565204.procop(e,tp,eg,ep,ev,re,r,rp)
end
end
tc
:
SetMaterial
(
mat
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_
TYP
E_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_
VALUE_FUTUR
E_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
c
:
SetCardTarget
(
tc
)
end
...
...
c79229522.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c79229522
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFunRep
(
c
,
70095154
,
c79229522
.
mfilter
,
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCodeFunRep
(
c
,
70095154
,
c79229522
.
mfilter
,
1
,
127
,
true
,
true
)
aux
.
AddContactFusionProcedure
(
c
,
c79229522
.
cfilter
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
c79229522
.
sprop
(
c
))
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c80889750.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c80889750
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunFunRep
(
c
,
c80889750
.
mfilter1
,
c80889750
.
mfilter2
,
1
,
63
,
true
)
aux
.
AddFusionProcFunFunRep
(
c
,
c80889750
.
mfilter1
,
c80889750
.
mfilter2
,
1
,
127
,
true
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
c81171949.lua
View file @
db98454b
...
...
@@ -21,8 +21,7 @@ end
function
c81171949
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
c
:
CancelToGrave
()
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
,
tp
,
true
)
end
end
function
c81171949
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c82734805.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c82734805
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCode2FunRep
(
c
,
14799437
,
23440231
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xbb
),
1
,
63
,
true
,
true
)
aux
.
AddFusionProcCode2FunRep
(
c
,
14799437
,
23440231
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xbb
),
1
,
127
,
true
,
true
)
--spsummon success
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
82734805
,
0
))
...
...
c84058253.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c84058253
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x1093
),
2
,
63
,
false
)
aux
.
AddFusionProcFunRep2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x1093
),
2
,
127
,
false
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
...
...
c84389640.lua
View file @
db98454b
...
...
@@ -36,7 +36,7 @@ function c84389640.cost(e,tp,eg,ep,ev,re,r,rp,chk)
and
e
:
GetLabelObject
():
IsAttackAbove
(
100
)
end
local
lp
=
Duel
.
GetLP
(
tp
)
local
atk
=
e
:
GetLabelObject
():
GetAttack
()
local
maxc
=
lp
>
atk
and
atk
or
lp
local
maxc
=
math.min
(
atk
,
lp
,
25500
)
maxc
=
math.floor
(
maxc
/
100
)
*
100
local
t
=
{}
for
i
=
1
,
maxc
/
100
do
...
...
c87116928.lua
View file @
db98454b
...
...
@@ -2,7 +2,7 @@
function
c87116928
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x1093
),
c87116928
.
matfilter
,
1
,
63
,
true
)
aux
.
AddFusionProcFunFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x1093
),
c87116928
.
matfilter
,
1
,
127
,
true
)
aux
.
AddContactFusionProcedure
(
c
,
c87116928
.
cfilter
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c87116928
.
sprop
(
c
))
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c89016236.lua
View file @
db98454b
...
...
@@ -44,7 +44,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
>
0
end
function
s
.
relfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0x196
)
and
c
:
Is
Faceup
()
and
c
:
Is
ReleasableByEffect
()
return
c
:
IsSetCard
(
0x196
)
and
c
:
IsReleasableByEffect
()
and
Duel
.
IsExistingMatchingCard
(
s
.
relfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
,
tp
,
c
)
end
function
s
.
relfilter2
(
c
,
tp
,
ec
)
...
...
c89771220.lua
View file @
db98454b
...
...
@@ -34,7 +34,7 @@ function c89771220.fselect(g,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c89771220
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
)
end
function
c89771220
.
spfilter
(
c
,
e
,
tp
,
g
)
return
c
:
IsCode
(
33250142
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
fals
e
)
return
c
:
IsCode
(
33250142
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
tru
e
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
c
)
>
0
end
function
c89771220
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -55,7 +55,7 @@ function c89771220.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c89771220
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
nil
)
if
#
sg
>
0
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
tru
e
,
POS_FACEUP
)
sg
:
GetFirst
():
CompleteProcedure
()
end
end
...
...
c95973569.lua
View file @
db98454b
...
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetValue
(
aux
.
synlimit
)
c
:
RegisterEffect
(
e1
)
--banish
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -69,7 +70,7 @@ function s.matchk(e,c)
ef
:
SetCountLimit
(
ct
)
end
function
s
.
sfilter
(
c
,
e
,
tp
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c96633955.lua
View file @
db98454b
...
...
@@ -42,7 +42,6 @@ function c96633955.initial_effect(c)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetCountLimit
(
1
,
96633955
)
e6
:
SetCondition
(
c96633955
.
remcon
)
e6
:
SetTarget
(
c96633955
.
remtg
)
e6
:
SetOperation
(
c96633955
.
remop
)
c
:
RegisterEffect
(
e6
)
...
...
@@ -64,12 +63,6 @@ function c96633955.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
return
true
else
return
false
end
end
function
c96633955
.
remfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c96633955
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c96633955
.
remfilter
,
1
,
nil
)
end
function
c96633955
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
...
...
c99137266.lua
View file @
db98454b
...
...
@@ -14,7 +14,6 @@ function c99137266.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetCountLimit
(
1
,
99137266
)
e2
:
SetCondition
(
c99137266
.
remcon
)
e2
:
SetTarget
(
c99137266
.
remtg
)
e2
:
SetOperation
(
c99137266
.
remop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -30,12 +29,6 @@ function c99137266.initial_effect(c)
e3
:
SetOperation
(
c99137266
.
spop
)
c
:
RegisterEffect
(
e3
)
end
function
c99137266
.
remfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c99137266
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c99137266
.
remfilter
,
1
,
nil
)
end
function
c99137266
.
rmfilter
(
c
)
return
(
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsRace
(
RACE_WYRM
)
or
c
:
IsSetCard
(
0x16b
))
and
c
:
IsAbleToRemove
()
and
(
c
:
IsFaceup
()
or
not
c
:
IsOnField
())
...
...
constant.lua
View file @
db98454b
...
...
@@ -158,6 +158,7 @@ SUMMON_VALUE_GLADIATOR =0x2000 --剑斗兽
SUMMON_VALUE_EVOLTILE
=
0x4000
--进化虫
SUMMON_VALUE_DARK_FUSION
=
SUMMON_TYPE_FUSION
|
0x16
--
SUMMON_VALUE_FOSSIL_FUSION
=
SUMMON_TYPE_FUSION
|
0x17
--
SUMMON_VALUE_FUTURE_FUSION
=
SUMMON_TYPE_FUSION
|
0x18
--
--Status --卡片当前状态
STATUS_DISABLED
=
0x0001
--效果被无效
STATUS_TO_ENABLE
=
0x0002
--将变成有效
...
...
procedure.lua
View file @
db98454b
...
...
@@ -1555,6 +1555,9 @@ function Auxiliary.FusionEffectUltimateTarget(params)
end
end
end
---
---@param params table
---@return function
function
Auxiliary
.
FusionEffectUltimateOperation
(
params
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
tp
...
...
@@ -1592,7 +1595,7 @@ function Auxiliary.FusionEffectUltimateOperation(params)
local
mg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
if
ce
then
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
):
Filter
(
Auxiliary
.
FusionEffectUltimateMatFilter
,
nil
,
e
,
tp
,
params
.
mat_filter
)
local
mf
=
ce
:
GetValue
()
...
...
@@ -1642,7 +1645,7 @@ function Auxiliary.FusionEffectUltimateOperation(params)
params
.
mat_operation
(
mat1
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
params
.
spsummon_nocheck
,
false
,
POS_FACEUP
)
elseif
ce
then
elseif
ce
and
mg2
then
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
gc
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
...
...
@@ -1708,6 +1711,10 @@ function Auxiliary.tdcfop(c)
if
cg
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
c
:
GetControler
(),
cg
)
end
local
hg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
if
hg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
hg
)
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment