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
a5cd6893
Commit
a5cd6893
authored
May 27, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert
parent
1af760b2
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
54 additions
and
31 deletions
+54
-31
c23846921.lua
c23846921.lua
+4
-1
c34568403.lua
c34568403.lua
+4
-1
c35781051.lua
c35781051.lua
+4
-1
c36690018.lua
c36690018.lua
+1
-1
c5861892.lua
c5861892.lua
+4
-1
c60953118.lua
c60953118.lua
+4
-1
c61175706.lua
c61175706.lua
+4
-1
c62892347.lua
c62892347.lua
+4
-1
c69831560.lua
c69831560.lua
+4
-1
c73206827.lua
c73206827.lua
+8
-18
c8396952.lua
c8396952.lua
+4
-1
c97452817.lua
c97452817.lua
+4
-1
c97574404.lua
c97574404.lua
+4
-1
c99189322.lua
c99189322.lua
+1
-1
No files found.
c23846921.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c23846921
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23846921
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c23846921
.
arcanareg
(
c
,
res
)
c23846921
.
arcanareg
(
c
,
res
)
end
end
function
c23846921
.
arcanareg
(
c
,
coin
)
function
c23846921
.
arcanareg
(
c
,
coin
)
...
...
c34568403.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c34568403
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34568403
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c34568403
.
arcanareg
(
c
,
res
)
c34568403
.
arcanareg
(
c
,
res
)
if
res
==
0
then
if
res
==
0
then
Duel
.
GetControl
(
c
,
1
-
tp
)
Duel
.
GetControl
(
c
,
1
-
tp
)
...
...
c35781051.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c35781051
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35781051
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c35781051
.
arcanareg
(
c
,
res
)
c35781051
.
arcanareg
(
c
,
res
)
end
end
function
c35781051
.
arcanareg
(
c
,
coin
)
function
c35781051
.
arcanareg
(
c
,
coin
)
...
...
c36690018.lua
View file @
a5cd6893
...
@@ -10,7 +10,7 @@ function c36690018.initial_effect(c)
...
@@ -10,7 +10,7 @@ function c36690018.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c36690018
.
filter
(
c
)
function
c36690018
.
filter
(
c
)
return
c
:
GetFlagEffect
(
36690018
)
~=
0
and
c
:
GetFlagEffect
(
73206827
)
==
0
return
c
:
GetFlagEffect
(
36690018
)
~=
0
end
end
function
c36690018
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c36690018
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c36690018
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c36690018
.
filter
(
chkc
)
end
...
...
c5861892.lua
View file @
a5cd6893
...
@@ -68,7 +68,10 @@ end
...
@@ -68,7 +68,10 @@ end
function
c5861892
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5861892
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c5861892
.
arcanareg
(
c
,
res
)
c5861892
.
arcanareg
(
c
,
res
)
end
end
function
c5861892
.
arcanareg
(
c
,
coin
)
function
c5861892
.
arcanareg
(
c
,
coin
)
...
...
c60953118.lua
View file @
a5cd6893
...
@@ -52,7 +52,10 @@ end
...
@@ -52,7 +52,10 @@ end
function
c60953118
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60953118
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c60953118
.
arcanareg
(
c
,
res
)
c60953118
.
arcanareg
(
c
,
res
)
end
end
function
c60953118
.
arcanareg
(
c
,
coin
)
function
c60953118
.
arcanareg
(
c
,
coin
)
...
...
c61175706.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c61175706
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61175706
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c61175706
.
arcanareg
(
c
,
res
)
c61175706
.
arcanareg
(
c
,
res
)
end
end
function
c61175706
.
arcanareg
(
c
,
coin
)
function
c61175706
.
arcanareg
(
c
,
coin
)
...
...
c62892347.lua
View file @
a5cd6893
...
@@ -39,7 +39,10 @@ end
...
@@ -39,7 +39,10 @@ end
function
c62892347
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62892347
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c62892347
.
arcanareg
(
c
,
res
)
c62892347
.
arcanareg
(
c
,
res
)
end
end
function
c62892347
.
arcanareg
(
c
,
coin
)
function
c62892347
.
arcanareg
(
c
,
coin
)
...
...
c69831560.lua
View file @
a5cd6893
...
@@ -68,7 +68,10 @@ end
...
@@ -68,7 +68,10 @@ end
function
c69831560
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69831560
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c69831560
.
arcanareg
(
c
,
res
)
c69831560
.
arcanareg
(
c
,
res
)
end
end
function
c69831560
.
arcanareg
(
c
,
coin
)
function
c69831560
.
arcanareg
(
c
,
coin
)
...
...
c73206827.lua
View file @
a5cd6893
...
@@ -17,15 +17,16 @@ function c73206827.initial_effect(c)
...
@@ -17,15 +17,16 @@ function c73206827.initial_effect(c)
e2
:
SetTarget
(
c73206827
.
cointg
)
e2
:
SetTarget
(
c73206827
.
cointg
)
e2
:
SetOperation
(
c73206827
.
coinop
)
e2
:
SetOperation
(
c73206827
.
coinop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
coin replace
--
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_TOSS_COIN_REPLACE
)
e3
:
SetCode
(
73206827
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x5
))
e3
:
SetCondition
(
c73206827
.
effectcon
)
e3
:
SetCondition
(
c73206827
.
effectcon
)
e3
:
SetOperation
(
c73206827
.
effectop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--
recover
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
73206827
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
73206827
,
1
))
e4
:
SetCategory
(
CATEGORY_RECOVER
)
e4
:
SetCategory
(
CATEGORY_RECOVER
)
...
@@ -53,20 +54,9 @@ function c73206827.coinop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,20 +54,9 @@ function c73206827.coinop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterFlagEffect
(
73206828
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
2
)
c
:
RegisterFlagEffect
(
73206828
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
2
)
end
end
end
end
function
c73206827
.
effectcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73206827
.
effectcon
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
GetFlagEffect
(
73206828
)
==
0
or
c
:
IsHasEffect
(
EFFECT_CANNOT_DISABLE
))
return
c
:
GetFlagEffect
(
73206828
)
==
0
or
c
:
IsHasEffect
(
EFFECT_CANNOT_DISABLE
)
and
rp
==
tp
and
re
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x5
)
and
(
re
:
GetCode
()
>=
EVENT_SUMMON_SUCCESS
and
re
:
GetCode
()
<=
EVENT_SPSUMMON_SUCCESS
)
end
function
c73206827
.
effectop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
res
=
0
for
i
=
0
,
ev
-
1
do
local
ac
=
Duel
.
AnnounceCoin
(
tp
)
res
=
res
+
bit
.
lshift
(
1
-
ac
,
i
*
4
)
end
re
:
GetHandler
():
RegisterFlagEffect
(
73206827
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
return
res
end
end
function
c73206827
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73206827
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c8396952.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c8396952
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8396952
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c8396952
.
arcanareg
(
c
,
res
)
c8396952
.
arcanareg
(
c
,
res
)
end
end
function
c8396952
.
arcanareg
(
c
,
coin
)
function
c8396952
.
arcanareg
(
c
,
coin
)
...
...
c97452817.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c97452817
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97452817
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c97452817
.
arcanareg
(
c
,
res
)
c97452817
.
arcanareg
(
c
,
res
)
end
end
function
c97452817
.
arcanareg
(
c
,
coin
)
function
c97452817
.
arcanareg
(
c
,
coin
)
...
...
c97574404.lua
View file @
a5cd6893
...
@@ -24,7 +24,10 @@ end
...
@@ -24,7 +24,10 @@ end
function
c97574404
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97574404
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c97574404
.
arcanareg
(
c
,
res
)
c97574404
.
arcanareg
(
c
,
res
)
end
end
function
c97574404
.
arcanareg
(
c
,
coin
)
function
c97574404
.
arcanareg
(
c
,
coin
)
...
...
c99189322.lua
View file @
a5cd6893
...
@@ -10,7 +10,7 @@ function c99189322.initial_effect(c)
...
@@ -10,7 +10,7 @@ function c99189322.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c99189322
.
filter
(
c
)
function
c99189322
.
filter
(
c
)
return
c
:
GetFlagEffect
(
36690018
)
~=
0
and
c
:
GetFlagEffect
(
73206827
)
==
0
return
c
:
GetFlagEffect
(
36690018
)
~=
0
end
end
function
c99189322
.
rfilter
(
c
)
function
c99189322
.
rfilter
(
c
)
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsAbleToRemove
()
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsAbleToRemove
()
...
...
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