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
db0c5617
Commit
db0c5617
authored
Jun 04, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-scripts
parents
e91e0a93
11f6d8d8
Changes
70
Show whitespace changes
Inline
Side-by-side
Showing
70 changed files
with
859 additions
and
834 deletions
+859
-834
c15005145.lua
c15005145.lua
+1
-1
c15171722.lua
c15171722.lua
+1
-1
c15982593.lua
c15982593.lua
+1
-1
c17272964.lua
c17272964.lua
+1
-1
c17462320.lua
c17462320.lua
+1
-1
c17550376.lua
c17550376.lua
+1
-1
c18158393.lua
c18158393.lua
+1
-1
c18494511.lua
c18494511.lua
+1
-1
c19403423.lua
c19403423.lua
+1
-1
c19671433.lua
c19671433.lua
+1
-1
c20515672.lua
c20515672.lua
+1
-1
c2116237.lua
c2116237.lua
+1
-1
c21368273.lua
c21368273.lua
+1
-1
c22404675.lua
c22404675.lua
+2
-2
c25774450.lua
c25774450.lua
+1
-1
c27345070.lua
c27345070.lua
+1
-1
c29280200.lua
c29280200.lua
+128
-128
c29302858.lua
c29302858.lua
+109
-109
c29510428.lua
c29510428.lua
+1
-1
c30095833.lua
c30095833.lua
+1
-1
c31600513.lua
c31600513.lua
+1
-1
c31987203.lua
c31987203.lua
+1
-1
c35026117.lua
c35026117.lua
+1
-1
c37343995.lua
c37343995.lua
+2
-2
c38041940.lua
c38041940.lua
+2
-0
c38798785.lua
c38798785.lua
+1
-1
c40785230.lua
c40785230.lua
+1
-1
c42822433.lua
c42822433.lua
+1
-1
c43944080.lua
c43944080.lua
+1
-1
c44760562.lua
c44760562.lua
+1
-1
c45065541.lua
c45065541.lua
+1
-1
c47873397.lua
c47873397.lua
+1
-1
c51779204.lua
c51779204.lua
+1
-1
c53485634.lua
c53485634.lua
+1
-1
c53754104.lua
c53754104.lua
+1
-1
c54594017.lua
c54594017.lua
+1
-1
c54851325.lua
c54851325.lua
+1
-1
c55688914.lua
c55688914.lua
+123
-123
c56510115.lua
c56510115.lua
+1
-1
c56727340.lua
c56727340.lua
+1
-1
c57357130.lua
c57357130.lua
+1
-1
c58884063.lua
c58884063.lua
+6
-6
c60023855.lua
c60023855.lua
+1
-1
c65305978.lua
c65305978.lua
+1
-1
c66150724.lua
c66150724.lua
+1
-1
c66401502.lua
c66401502.lua
+110
-110
c66736715.lua
c66736715.lua
+1
-1
c71164684.lua
c71164684.lua
+1
-1
c71277255.lua
c71277255.lua
+1
-1
c71948047.lua
c71948047.lua
+1
-1
c73355951.lua
c73355951.lua
+3
-3
c7336745.lua
c7336745.lua
+1
-1
c75728539.lua
c75728539.lua
+1
-1
c76840111.lua
c76840111.lua
+1
-1
c77765207.lua
c77765207.lua
+1
-1
c78098950.lua
c78098950.lua
+1
-1
c79210531.lua
c79210531.lua
+1
-1
c81978611.lua
c81978611.lua
+1
-1
c82090807.lua
c82090807.lua
+1
-1
c82112494.lua
c82112494.lua
+1
-1
c83334932.lua
c83334932.lua
+1
-1
c84384943.lua
c84384943.lua
+1
-1
c86852702.lua
c86852702.lua
+67
-46
c91073013.lua
c91073013.lua
+128
-128
c91300233.lua
c91300233.lua
+1
-1
c92895501.lua
c92895501.lua
+116
-116
c9336190.lua
c9336190.lua
+3
-1
c95243515.lua
c95243515.lua
+1
-1
c97417863.lua
c97417863.lua
+1
-1
c98905.lua
c98905.lua
+4
-4
No files found.
c15005145.lua
View file @
db0c5617
c15171722.lua
View file @
db0c5617
c15982593.lua
View file @
db0c5617
c17272964.lua
View file @
db0c5617
c17462320.lua
View file @
db0c5617
c17550376.lua
View file @
db0c5617
c18158393.lua
View file @
db0c5617
c18494511.lua
View file @
db0c5617
c19403423.lua
View file @
db0c5617
c19671433.lua
View file @
db0c5617
c20515672.lua
View file @
db0c5617
c2116237.lua
View file @
db0c5617
c21368273.lua
View file @
db0c5617
c22404675.lua
View file @
db0c5617
...
@@ -31,10 +31,10 @@ function c22404675.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,10 +31,10 @@ function c22404675.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c22404675
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22404675
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
22404676
,
0
,
TYPES_TOKEN_MONSTER
,
800
,
1000
,
1
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
22404676
,
0
,
TYPES_TOKEN_MONSTER
,
800
,
1000
,
1
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
22404676
)
local
token
=
Duel
.
CreateToken
(
tp
,
22404676
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c25774450.lua
View file @
db0c5617
c27345070.lua
View file @
db0c5617
c29280200.lua
View file @
db0c5617
c29302858.lua
View file @
db0c5617
c29510428.lua
View file @
db0c5617
c30095833.lua
View file @
db0c5617
c31600513.lua
View file @
db0c5617
c31987203.lua
View file @
db0c5617
c35026117.lua
View file @
db0c5617
c37343995.lua
View file @
db0c5617
...
@@ -64,8 +64,8 @@ function c37343995.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -64,8 +64,8 @@ function c37343995.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c37343995
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c37343995
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c37343995
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c37343995
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c38041940.lua
View file @
db0c5617
...
@@ -23,6 +23,7 @@ end
...
@@ -23,6 +23,7 @@ end
function
c38041940
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c38041940
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c38041940
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c38041940
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsExistingTarget
(
c38041940
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
c38041940
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38041941
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38041941
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
@@ -34,6 +35,7 @@ function c38041940.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,6 +35,7 @@ function c38041940.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_PLANT
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_PLANT
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38041941
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38041941
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
38041941
)
local
token
=
Duel
.
CreateToken
(
tp
,
38041941
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c38798785.lua
View file @
db0c5617
c40785230.lua
View file @
db0c5617
c42822433.lua
View file @
db0c5617
c43944080.lua
View file @
db0c5617
c44760562.lua
View file @
db0c5617
c45065541.lua
View file @
db0c5617
c47873397.lua
View file @
db0c5617
c51779204.lua
View file @
db0c5617
c53485634.lua
View file @
db0c5617
...
@@ -45,7 +45,7 @@ end
...
@@ -45,7 +45,7 @@ end
function
c53485634
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53485634
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c53485634
.
filter
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c53485634
.
filter
,
nil
,
e
,
tp
)
if
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
0
and
g
:
GetCount
()
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
if
ft
>
0
and
g
:
GetCount
()
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
...
...
c53754104.lua
View file @
db0c5617
c54594017.lua
View file @
db0c5617
c54851325.lua
View file @
db0c5617
c55688914.lua
View file @
db0c5617
c56510115.lua
View file @
db0c5617
c56727340.lua
View file @
db0c5617
c57357130.lua
View file @
db0c5617
c58884063.lua
View file @
db0c5617
...
@@ -45,14 +45,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,14 +45,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
desfilter
(
c
,
tp
,
seq
)
function
s
.
desfilter
(
c
,
tp
,
seq
)
local
sseq
=
c
:
GetSequence
()
local
sseq
=
c
:
GetSequence
()
if
c
:
IsControler
(
tp
)
then
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
sseq
==
5
and
seq
==
3
or
sseq
==
6
and
seq
==
1
return
sseq
==
5
and
seq
==
3
or
sseq
==
6
and
seq
==
1
or
sseq
==
3
and
seq
==
5
or
sseq
==
1
and
seq
==
6
end
end
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
c
:
Is
Controler
(
tp
)
and
c
:
Is
Location
(
LOCATION_SZONE
)
then
return
sseq
<
5
and
sseq
==
seq
return
sseq
<
5
and
sseq
==
seq
end
end
if
sseq
<
5
then
if
sseq
<
5
then
return
math.abs
(
sseq
-
seq
)
==
1
return
math.abs
(
sseq
-
seq
)
==
1
or
sseq
==
1
and
seq
==
5
or
sseq
==
3
and
seq
==
6
end
end
if
sseq
>=
5
then
if
sseq
>=
5
then
return
sseq
==
5
and
seq
==
1
or
sseq
==
6
and
seq
==
3
return
sseq
==
5
and
seq
==
1
or
sseq
==
6
and
seq
==
3
...
@@ -60,8 +60,8 @@ function s.desfilter(c,tp,seq)
...
@@ -60,8 +60,8 @@ function s.desfilter(c,tp,seq)
end
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
tc
,
tp
,
tc
:
GetSequence
())
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
tc
,
1
-
tc
:
GetControler
()
,
tc
:
GetSequence
())
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
and
#
cg
>
0
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
and
#
cg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c60023855.lua
View file @
db0c5617
c65305978.lua
View file @
db0c5617
c66150724.lua
View file @
db0c5617
c66401502.lua
View file @
db0c5617
c66736715.lua
View file @
db0c5617
c71164684.lua
View file @
db0c5617
c71277255.lua
View file @
db0c5617
c71948047.lua
View file @
db0c5617
c73355951.lua
View file @
db0c5617
...
@@ -23,7 +23,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -23,7 +23,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
@@ -33,10 +34,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,10 +34,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetTargetsRelateToChain
()
local
g
=
Duel
.
GetTargetsRelateToChain
()
if
#
g
==
2
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
local
sc1
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
):
GetFirst
()
local
sc1
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
):
GetFirst
()
local
sc2
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
):
GetFirst
()
local
sc2
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
):
GetFirst
()
if
sc1
and
Duel
.
SpecialSummonStep
(
sc1
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
and
sc2
then
if
sc1
and
Duel
.
SpecialSummonStep
(
sc1
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
and
sc2
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
SpecialSummonStep
(
sc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
sc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
...
...
c7336745.lua
View file @
db0c5617
c75728539.lua
View file @
db0c5617
c76840111.lua
View file @
db0c5617
c77765207.lua
View file @
db0c5617
c78098950.lua
View file @
db0c5617
c79210531.lua
View file @
db0c5617
c81978611.lua
View file @
db0c5617
c82090807.lua
View file @
db0c5617
c82112494.lua
View file @
db0c5617
c83334932.lua
View file @
db0c5617
c84384943.lua
View file @
db0c5617
c86852702.lua
View file @
db0c5617
...
@@ -7,32 +7,70 @@ function c86852702.initial_effect(c)
...
@@ -7,32 +7,70 @@ function c86852702.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
86852702
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
86852702
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c86852702
.
cost
1
)
e1
:
SetCost
(
c86852702
.
cost
)
e1
:
SetTarget
(
c86852702
.
target
1
)
e1
:
SetTarget
(
c86852702
.
target
)
e1
:
SetOperation
(
c86852702
.
activate
1
)
e1
:
SetOperation
(
c86852702
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
86852702
,
1
))
e2
:
SetCost
(
c86852702
.
cost2
)
e2
:
SetTarget
(
c86852702
.
target2
)
e2
:
SetOperation
(
c86852702
.
activate2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c86852702
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86852702
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
if
chk
==
0
then
return
true
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
function
c86852702
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsDiscardable
()
end
end
function
c86852702
.
thfilter1
(
c
)
function
c86852702
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c86852702
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86852702
.
thfilter2
(
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
return
c
:
IsSetCard
(
0x36
)
and
not
c
:
IsCode
(
86852702
)
and
c
:
IsAbleToHand
()
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
end
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
function
c86852702
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
count1
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
count2
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
and
count1
>=
2
local
b2
=
Duel
.
IsExistingMatchingCard
(
c86852702
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
and
count2
>=
2
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
b1
or
b2
else
return
count1
>=
2
or
count2
>=
2
end
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
),
aux
.
Stringid
(
86852702
,
1
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
1
))
+
1
end
if
op
==
0
then
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
else
Duel
.
DiscardHand
(
tp
,
c86852702
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
e
:
SetLabel
(
0
,
op
)
else
local
op
=
0
if
count1
>=
2
and
count2
>=
2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
),
aux
.
Stringid
(
86852702
,
1
))
elseif
count1
>=
2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
1
))
+
1
end
e
:
SetLabel
(
0
,
op
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
end
function
c86852702
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86852702
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
label
,
op
=
e
:
GetLabel
()
if
op
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
...
@@ -40,25 +78,7 @@ function c86852702.activate1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,25 +78,7 @@ function c86852702.activate1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
end
end
end
else
function
c86852702
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsDiscardable
()
end
function
c86852702
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86852702
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
DiscardHand
(
tp
,
c86852702
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
function
c86852702
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
not
c
:
IsCode
(
86852702
)
and
c
:
IsAbleToHand
()
end
function
c86852702
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c86852702
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
...
@@ -66,4 +86,5 @@ function c86852702.activate2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,4 +86,5 @@ function c86852702.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
end
end
end
end
end
c91073013.lua
View file @
db0c5617
c91300233.lua
View file @
db0c5617
c92895501.lua
View file @
db0c5617
c9336190.lua
View file @
db0c5617
...
@@ -51,7 +51,8 @@ function c9336190.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -51,7 +51,8 @@ function c9336190.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
IsExistingTarget
(
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
g
:
AddCard
(
e
:
GetHandler
())
g
:
AddCard
(
e
:
GetHandler
())
...
@@ -61,6 +62,7 @@ function c9336190.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,6 +62,7 @@ function c9336190.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
9336190
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
tc
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
9336190
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
tc
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
TYPE_NORMAL
,
0
,
0
,
tc
:
GetLevel
(),
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
,
0
,
0
,
tc
:
GetLevel
(),
0
,
0
)
...
...
c95243515.lua
View file @
db0c5617
c97417863.lua
View file @
db0c5617
c98905.lua
View file @
db0c5617
...
@@ -30,15 +30,15 @@ function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -30,15 +30,15 @@ function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c98905
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98905
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c98905
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c98905
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
())
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
g
:
AddCard
(
tc
)
Duel
.
SpecialSummonStep
(
g
:
GetFirst
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
Duel
.
SpecialSummonComplete
()
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