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
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
八宫一月
ygopro-scripts
Commits
01399a8b
Commit
01399a8b
authored
Jan 19, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
af91f0b1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
64 deletions
+32
-64
c24207889.lua
c24207889.lua
+8
-47
c31759689.lua
c31759689.lua
+1
-0
c37310367.lua
c37310367.lua
+19
-14
c67744384.lua
c67744384.lua
+2
-1
c74715061.lua
c74715061.lua
+1
-0
c94142993.lua
c94142993.lua
+1
-2
No files found.
c24207889.lua
View file @
01399a8b
...
@@ -5,8 +5,6 @@ function c24207889.initial_effect(c)
...
@@ -5,8 +5,6 @@ function c24207889.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
0x1c0
)
e1
:
SetHintTiming
(
0
,
0x1c0
)
e1
:
SetTarget
(
c24207889
.
acttg
)
e1
:
SetOperation
(
c24207889
.
actop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--adjust
--adjust
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -32,30 +30,16 @@ function c24207889.initial_effect(c)
...
@@ -32,30 +30,16 @@ function c24207889.initial_effect(c)
e6
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e6
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
c24207889
[
0
]
=
nil
c24207889
[
1
]
=
nil
function
c24207889
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c24207889
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
sumpos
and
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
then
return
false
end
if
sumpos
and
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
then
return
false
end
local
tp
=
sump
local
tp
=
sump
if
targetp
then
tp
=
targetp
end
if
targetp
then
tp
=
targetp
end
return
Duel
.
IsExistingMatchingCard
(
c24207889
.
rmfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetRace
())
return
Duel
.
IsExistingMatchingCard
(
c24207889
.
rmfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetRace
())
end
end
function
c24207889
.
rmfilter
(
c
,
rc
)
function
c24207889
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
rc
)
local
phase
=
Duel
.
GetCurrentPhase
()
end
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
then
return
end
function
c24207889
.
filter
(
c
,
g
,
pg
)
local
sg
=
Group
.
CreateGroup
()
if
pg
:
IsContains
(
c
)
then
return
false
end
local
rc
=
c
:
GetRace
()
return
g
:
IsExists
(
Card
.
IsRace
,
1
,
c
,
rc
)
or
pg
:
IsExists
(
Card
.
IsRace
,
1
,
c
,
rc
)
end
function
c24207889
.
acttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
c24207889
[
0
]
=
Group
.
CreateGroup
()
c24207889
[
0
]:
KeepAlive
()
c24207889
[
1
]
=
Group
.
CreateGroup
()
c24207889
[
1
]:
KeepAlive
()
end
function
c24207889
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
p
=
0
,
1
do
for
p
=
0
,
1
do
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
race
=
1
local
race
=
1
...
@@ -65,36 +49,13 @@ function c24207889.actop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,36 +49,13 @@ function c24207889.actop(e,tp,eg,ep,ev,re,r,rp)
if
rc
>
1
then
if
rc
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
dg
=
rg
:
Select
(
p
,
rc
-
1
,
rc
-
1
,
nil
)
local
dg
=
rg
:
Select
(
p
,
rc
-
1
,
rc
-
1
,
nil
)
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
)
sg
:
Merge
(
dg
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
end
end
race
=
race
*
2
race
=
race
*
2
end
end
end
end
end
if
sg
:
GetCount
()
>
0
then
function
c24207889
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoGrave
(
sg
,
REASON_RULE
)
local
phase
=
Duel
.
GetCurrentPhase
()
Duel
.
Readjust
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
then
return
end
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
24207889
)
==
0
then
c
:
RegisterFlagEffect
(
24207889
,
RESET_EVENT
+
0x1ff0000
,
0
,
1
)
c24207889
[
0
]:
Clear
()
c24207889
[
1
]:
Clear
()
end
for
p
=
0
,
1
do
local
pg
=
c24207889
[
p
]
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
dg
=
g
:
Filter
(
c24207889
.
filter
,
nil
,
g
,
pg
)
if
dg
:
GetCount
()
==
0
or
Duel
.
SendtoGrave
(
dg
,
REASON_EFFECT
)
==
0
then
pg
:
Clear
()
pg
:
Merge
(
g
)
pg
:
Sub
(
dg
)
else
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
pg
:
Clear
()
pg
:
Merge
(
g
)
pg
:
Sub
(
dg
)
Duel
.
Readjust
()
end
end
end
end
end
c31759689.lua
View file @
01399a8b
...
@@ -49,6 +49,7 @@ function c31759689.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,6 +49,7 @@ function c31759689.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
atk
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
BreakEffect
()
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
end
end
end
end
...
...
c37310367.lua
View file @
01399a8b
...
@@ -65,19 +65,24 @@ end
...
@@ -65,19 +65,24 @@ end
function
c37310367
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c37310367
.
disop
(
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
(
c37310367
.
disfilter
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c37310367
.
disfilter
,
nil
,
e
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
<
2
then
return
end
while
tc
do
local
rc
=
re
:
GetHandler
()
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
sc
=
g
:
GetFirst
()
local
e1
=
Effect
.
CreateEffect
(
c
)
if
sc
==
rc
then
sc
=
g
:
GetNext
()
end
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
if
sc
:
IsControler
(
tp
)
and
sc
:
IsRace
(
RACE_CYBERS
)
and
rc
:
IsControler
(
1
-
tp
)
then
e1
:
SetCode
(
EFFECT_DISABLE
)
while
tc
do
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
tc
=
g
:
GetNext
()
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
end
end
end
end
c67744384.lua
View file @
01399a8b
...
@@ -23,7 +23,8 @@ function c67744384.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,7 +23,8 @@ function c67744384.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
3
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
3
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
ct
=
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
)
local
ct
=
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
)
if
ct
==
g
:
GetCount
()
and
g
:
IsExists
(
Card
.
IsSetCard
,
ct
,
nil
,
0x10b
)
then
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
Card
.
IsSetCard
,
ct
,
nil
,
0x10b
)
then
local
sg
=
Duel
.
GetMatchingGroup
(
c67744384
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c67744384
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
67744384
,
1
))
then
if
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
67744384
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c74715061.lua
View file @
01399a8b
...
@@ -25,6 +25,7 @@ function c74715061.initial_effect(c)
...
@@ -25,6 +25,7 @@ function c74715061.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCountLimit
(
1
,
74715061
)
e3
:
SetTarget
(
c74715061
.
sptg2
)
e3
:
SetTarget
(
c74715061
.
sptg2
)
e3
:
SetOperation
(
c74715061
.
spop2
)
e3
:
SetOperation
(
c74715061
.
spop2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
c94142993.lua
View file @
01399a8b
...
@@ -25,7 +25,6 @@ function c94142993.initial_effect(c)
...
@@ -25,7 +25,6 @@ function c94142993.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
94142993
,
2
))
e3
:
SetDescription
(
aux
.
Stringid
(
94142993
,
2
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCountLimit
(
1
,
94142995
)
e3
:
SetCountLimit
(
1
,
94142995
)
...
@@ -70,7 +69,7 @@ function c94142993.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +69,7 @@ function c94142993.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c94142993
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c94142993
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c94142993
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94142993
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
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
c94142993
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94142993
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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