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
4c0b2b80
Commit
4c0b2b80
authored
Nov 04, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'SUDA' into master
parents
dde23b17
c02a6080
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
c2674965.lua
c2674965.lua
+2
-2
c38379052.lua
c38379052.lua
+3
-3
c65889305.lua
c65889305.lua
+3
-3
c90315086.lua
c90315086.lua
+1
-1
c91284003.lua
c91284003.lua
+3
-3
c91438674.lua
c91438674.lua
+1
-1
No files found.
c2674965.lua
View file @
4c0b2b80
...
@@ -45,7 +45,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x1c
3
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x1c
1
)
and
c
:
IsAbleToHand
()
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
...
@@ -71,7 +71,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +71,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
)
end
end
function
s
.
cfilter2
(
c
)
function
s
.
cfilter2
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1c
3
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1c
1
)
end
end
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
...
...
c38379052.lua
View file @
4c0b2b80
...
@@ -49,13 +49,13 @@ end
...
@@ -49,13 +49,13 @@ end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
id
)
==
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
id
)
==
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
3
,
TYPES_EFFECT_TRAP_MONSTER
,
800
,
800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
1
,
TYPES_EFFECT_TRAP_MONSTER
,
800
,
800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TURN_SET
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TURN_SET
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
3
,
TYPES_EFFECT_TRAP_MONSTER
,
800
,
800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
1
,
TYPES_EFFECT_TRAP_MONSTER
,
800
,
800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
...
@@ -71,7 +71,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +71,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
cfilter2
(
c
)
function
s
.
cfilter2
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1c
3
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1c
1
)
end
end
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c65889305.lua
View file @
4c0b2b80
...
@@ -55,16 +55,16 @@ end
...
@@ -55,16 +55,16 @@ end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
id
)
==
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
id
)
==
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
3
,
TYPES_EFFECT_TRAP_MONSTER
,
2000
,
2000
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
1
,
TYPES_EFFECT_TRAP_MONSTER
,
2000
,
2000
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TURN_SET
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TURN_SET
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
not
c
:
IsCode
(
id
)
and
c
:
IsSetCard
(
0x1c
3
)
and
c
:
IsAbleToHand
()
return
not
c
:
IsCode
(
id
)
and
c
:
IsSetCard
(
0x1c
1
)
and
c
:
IsAbleToHand
()
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
3
,
TYPES_EFFECT_TRAP_MONSTER
,
2000
,
2000
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
1
,
TYPES_EFFECT_TRAP_MONSTER
,
2000
,
2000
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
...
...
c90315086.lua
View file @
4c0b2b80
...
@@ -69,7 +69,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
thfilter
(
c
)
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x1c
4
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x1c
2
)
and
c
:
IsAbleToHand
()
end
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
c91284003.lua
View file @
4c0b2b80
...
@@ -53,13 +53,13 @@ end
...
@@ -53,13 +53,13 @@ end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
id
)
==
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
GetFlagEffect
(
id
)
==
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
3
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
1
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TURN_SET
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TURN_SET
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
3
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x1c
1
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
then
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
then
...
@@ -68,7 +68,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,7 +68,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
cfilter2
(
c
)
function
s
.
cfilter2
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1c
3
)
return
c
:
IsFaceupEx
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x1c
1
)
end
end
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c91438674.lua
View file @
4c0b2b80
...
@@ -77,7 +77,7 @@ function s.chainlm(e,rp,tp)
...
@@ -77,7 +77,7 @@ function s.chainlm(e,rp,tp)
return
tp
==
rp
return
tp
==
rp
end
end
function
s
.
setfilter
(
c
,
tp
)
function
s
.
setfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x1c
3
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0x1c
1
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
end
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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