Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
Commits
a6c8ab7c
Commit
a6c8ab7c
authored
Dec 27, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update setcode
parent
70151c12
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
c14386013.lua
c14386013.lua
+1
-1
c15173384.lua
c15173384.lua
+2
-2
c40771118.lua
c40771118.lua
+2
-2
c78063197.lua
c78063197.lua
+2
-2
c89785779.lua
c89785779.lua
+2
-2
c94212438.lua
c94212438.lua
+3
-3
No files found.
c14386013.lua
View file @
a6c8ab7c
...
@@ -45,7 +45,7 @@ function c14386013.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c14386013.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c14386013
.
drfilter
(
c
)
function
c14386013
.
drfilter
(
c
)
return
(
c
:
IsCode
(
94212438
)
or
c
:
Is
Code
(
31893528
,
67287533
,
94772232
,
30170981
))
and
c
:
IsAbleToDeck
()
return
(
c
:
IsCode
(
94212438
)
or
c
:
Is
SetCode
(
0x1c
))
and
c
:
IsAbleToDeck
()
end
end
function
c14386013
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14386013
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
)
...
...
c15173384.lua
View file @
a6c8ab7c
...
@@ -26,7 +26,7 @@ function c15173384.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c15173384.initial_effect(c)
end
end
function
c15173384
.
cfilter
(
c
,
tp
)
function
c15173384
.
cfilter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
((
c
:
IsPreviousSetCard
(
0x110
)
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_FUSION
)
~=
0
)
or
c
:
GetPreviousCodeOnField
()
==
64631466
)
and
((
c
:
IsPreviousSetCard
(
0x11
1
0
)
and
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_FUSION
)
~=
0
)
or
c
:
GetPreviousCodeOnField
()
==
64631466
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c15173384
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15173384
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -47,7 +47,7 @@ function c15173384.spcon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,7 @@ function c15173384.spcon2(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c15173384
.
filter
(
c
,
e
,
tp
)
function
c15173384
.
filter
(
c
,
e
,
tp
)
return
((
c
:
IsSetCard
(
0x110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
return
((
c
:
IsSetCard
(
0x11
1
0
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c15173384
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c15173384
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c40771118.lua
View file @
a6c8ab7c
...
@@ -35,7 +35,7 @@ function c40771118.thfilter(c)
...
@@ -35,7 +35,7 @@ function c40771118.thfilter(c)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToHand
()
end
end
function
c40771118
.
cfilter
(
c
)
function
c40771118
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
94212438
)
or
c
:
Is
Code
(
31893528
,
67287533
,
94772232
,
30170981
))
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
94212438
)
or
c
:
Is
SetCode
(
0x1c
))
end
end
function
c40771118
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c40771118
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c40771118
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c40771118
.
thfilter
(
chkc
)
end
...
@@ -59,7 +59,7 @@ function c40771118.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -59,7 +59,7 @@ function c40771118.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c40771118
.
plfilter
(
c
,
tp
,
mc
)
function
c40771118
.
plfilter
(
c
,
tp
,
mc
)
if
not
c
:
Is
Code
(
31893528
,
67287533
,
94772232
,
30170981
)
then
return
false
end
if
not
c
:
Is
SetCode
(
0x1c
)
then
return
false
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
16625614
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
16625614
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
c
:
GetCode
(),
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
tp
,
SUMMON_VALUE_DARK_SANCTUARY
)
then
return
true
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
c
:
GetCode
(),
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
tp
,
SUMMON_VALUE_DARK_SANCTUARY
)
then
return
true
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
...
...
c78063197.lua
View file @
a6c8ab7c
...
@@ -29,7 +29,7 @@ function c78063197.filter1(c,e)
...
@@ -29,7 +29,7 @@ function c78063197.filter1(c,e)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
c78063197
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
function
c78063197
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
and
c
:
IsSetCard
(
0x110
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
and
c
:
IsSetCard
(
0x11
1
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
end
function
c78063197
.
filter3
(
c
)
function
c78063197
.
filter3
(
c
)
...
@@ -95,7 +95,7 @@ function c78063197.filter(c)
...
@@ -95,7 +95,7 @@ function c78063197.filter(c)
end
end
function
c78063197
.
eqfilter
(
c
)
function
c78063197
.
eqfilter
(
c
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
m
.
can_equip_monster
(
c
)
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x11
1
0
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
m
.
can_equip_monster
(
c
)
end
end
function
c78063197
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c78063197
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c78063197
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c78063197
.
filter
(
chkc
)
end
...
...
c89785779.lua
View file @
a6c8ab7c
...
@@ -35,7 +35,7 @@ function c89785779.filter(c)
...
@@ -35,7 +35,7 @@ function c89785779.filter(c)
end
end
function
c89785779
.
eqfilter
(
c
)
function
c89785779
.
eqfilter
(
c
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
m
.
can_equip_monster
(
c
)
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x11
1
0
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
and
m
.
can_equip_monster
(
c
)
end
end
function
c89785779
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c89785779
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c89785779
.
filter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c89785779
.
filter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
...
@@ -59,7 +59,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c89785779
.
thfilter
(
c
)
function
c89785779
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x110
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
return
c
:
IsFaceup
()
and
((
c
:
IsSetCard
(
0x11
1
0
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsCode
(
64631466
))
end
end
function
c89785779
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c89785779
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c89785779
.
thfilter
,
1
,
nil
)
return
eg
:
IsExists
(
c89785779
.
thfilter
,
1
,
nil
)
...
...
c94212438.lua
View file @
a6c8ab7c
...
@@ -83,10 +83,10 @@ function c94212438.plop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,10 +83,10 @@ function c94212438.plop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c94212438
.
cfilter1
(
c
,
tp
)
function
c94212438
.
cfilter1
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsCode
(
94212438
,
31893528
,
67287533
,
94772232
,
30170981
)
return
c
:
IsControler
(
tp
)
and
(
c
:
IsCode
(
94212438
)
or
c
:
IsSetCode
(
0x1c
)
)
end
end
function
c94212438
.
cfilter2
(
c
)
function
c94212438
.
cfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
94212438
,
31893528
,
67287533
,
94772232
,
30170981
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
94212438
)
or
c
:
IsSetCode
(
0x1c
)
)
end
end
function
c94212438
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94212438
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c94212438
.
cfilter1
,
1
,
nil
,
tp
)
...
@@ -96,7 +96,7 @@ function c94212438.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,7 +96,7 @@ function c94212438.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
function
c94212438
.
cfilter3
(
c
)
function
c94212438
.
cfilter3
(
c
)
return
c
:
IsFaceup
()
and
c
:
Is
Code
(
31893528
,
67287533
,
94772232
,
30170981
)
return
c
:
IsFaceup
()
and
c
:
Is
SetCode
(
0x1c
)
end
end
function
c94212438
.
winop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94212438
.
winop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
WIN_REASON_DESTINY_BOARD
=
0x15
local
WIN_REASON_DESTINY_BOARD
=
0x15
...
...
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