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
nanahira
ygopro-scripts
Commits
3df1fc2f
Commit
3df1fc2f
authored
Nov 03, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Auxiliary.EnableArcanaCoin
parent
56f27fbb
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
286 deletions
+12
-286
c23846921.lua
c23846921.lua
+1
-27
c35781051.lua
c35781051.lua
+1
-27
c5861892.lua
c5861892.lua
+1
-21
c59712426.lua
c59712426.lua
+1
-27
c60953118.lua
c60953118.lua
+1
-27
c61175706.lua
c61175706.lua
+1
-27
c62892347.lua
c62892347.lua
+1
-27
c69831560.lua
c69831560.lua
+1
-21
c8396952.lua
c8396952.lua
+1
-27
c97452817.lua
c97452817.lua
+1
-27
c97574404.lua
c97574404.lua
+1
-27
utility.lua
utility.lua
+1
-1
No files found.
c23846921.lua
View file @
3df1fc2f
...
...
@@ -2,35 +2,9 @@
---@param c Card
function
c23846921
.
initial_effect
(
c
)
--coin
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
23846921
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c23846921
.
cointg
)
e1
:
SetOperation
(
c23846921
.
coinop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c23846921
.
toss_coin
=
true
function
c23846921
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c23846921
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c23846921
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c35781051.lua
View file @
3df1fc2f
...
...
@@ -2,35 +2,9 @@
---@param c Card
function
c35781051
.
initial_effect
(
c
)
--coin
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35781051
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c35781051
.
cointg
)
e1
:
SetOperation
(
c35781051
.
coinop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c35781051
.
toss_coin
=
true
function
c35781051
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c35781051
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c35781051
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c5861892.lua
View file @
3df1fc2f
...
...
@@ -19,14 +19,7 @@ function c5861892.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e2
)
--coin
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
5861892
,
0
))
e3
:
SetCategory
(
CATEGORY_COIN
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetTarget
(
c5861892
.
cointg
)
e3
:
SetOperation
(
c5861892
.
coinop
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SPSUMMON_SUCCESS
)
end
c5861892
.
toss_coin
=
true
function
c5861892
.
spfilter
(
c
)
...
...
@@ -53,19 +46,6 @@ function c5861892.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoGrave
(
g
,
REASON_SPSUMMON
)
g
:
DeleteGroup
()
end
function
c5861892
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c5861892
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c5861892
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c59712426.lua
View file @
3df1fc2f
...
...
@@ -14,20 +14,7 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e1
)
--coin
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_COIN
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetTarget
(
s
.
cointg
)
e2
:
SetOperation
(
s
.
coinop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e4
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
s
.
toss_coin
=
true
function
s
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -50,19 +37,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
s
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
s
.
arcanareg
(
c
,
res
)
end
function
s
.
arcanareg
(
c
,
coin
)
--heads: optional destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c60953118.lua
View file @
3df1fc2f
...
...
@@ -12,20 +12,7 @@ function c60953118.initial_effect(c)
e1
:
SetOperation
(
c60953118
.
damop
)
c
:
RegisterEffect
(
e1
)
--coin
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
60953118
,
0
))
e2
:
SetCategory
(
CATEGORY_COIN
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetTarget
(
c60953118
.
cointg
)
e2
:
SetOperation
(
c60953118
.
coinop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e4
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c60953118
.
toss_coin
=
true
function
c60953118
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -44,19 +31,6 @@ function c60953118.damop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c60953118
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c60953118
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c60953118
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c61175706.lua
View file @
3df1fc2f
...
...
@@ -2,35 +2,9 @@
---@param c Card
function
c61175706
.
initial_effect
(
c
)
--coin
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
61175706
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c61175706
.
cointg
)
e1
:
SetOperation
(
c61175706
.
coinop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c61175706
.
toss_coin
=
true
function
c61175706
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c61175706
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c61175706
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c62892347.lua
View file @
3df1fc2f
...
...
@@ -14,38 +14,12 @@ function c62892347.initial_effect(c)
e2
:
SetCondition
(
c62892347
.
poscon
)
c
:
RegisterEffect
(
e2
)
--coin
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
62892347
,
0
))
e3
:
SetCategory
(
CATEGORY_COIN
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetTarget
(
c62892347
.
cointg
)
e3
:
SetOperation
(
c62892347
.
coinop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e5
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c62892347
.
toss_coin
=
true
function
c62892347
.
poscon
(
e
)
return
e
:
GetHandler
():
IsPosition
(
POS_FACEUP_ATTACK
)
end
function
c62892347
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c62892347
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c62892347
.
arcanareg
(
c
,
coin
)
--disable
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c69831560.lua
View file @
3df1fc2f
...
...
@@ -19,14 +19,7 @@ function c69831560.initial_effect(c)
e2
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e2
)
--coin
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
69831560
,
0
))
e3
:
SetCategory
(
CATEGORY_COIN
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetTarget
(
c69831560
.
cointg
)
e3
:
SetOperation
(
c69831560
.
coinop
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SPSUMMON_SUCCESS
)
end
c69831560
.
toss_coin
=
true
function
c69831560
.
spfilter
(
c
)
...
...
@@ -53,19 +46,6 @@ function c69831560.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoGrave
(
g
,
REASON_SPSUMMON
)
g
:
DeleteGroup
()
end
function
c69831560
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c69831560
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c69831560
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c8396952.lua
View file @
3df1fc2f
...
...
@@ -2,35 +2,9 @@
---@param c Card
function
c8396952
.
initial_effect
(
c
)
--coin
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
8396952
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c8396952
.
cointg
)
e1
:
SetOperation
(
c8396952
.
coinop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c8396952
.
toss_coin
=
true
function
c8396952
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c8396952
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c8396952
.
arcanareg
(
c
,
coin
)
--disable effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c97452817.lua
View file @
3df1fc2f
...
...
@@ -2,35 +2,9 @@
---@param c Card
function
c97452817
.
initial_effect
(
c
)
--coin
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
97452817
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c97452817
.
cointg
)
e1
:
SetOperation
(
c97452817
.
coinop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c97452817
.
toss_coin
=
true
function
c97452817
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c97452817
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c97452817
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c97574404.lua
View file @
3df1fc2f
...
...
@@ -2,35 +2,9 @@
---@param c Card
function
c97574404
.
initial_effect
(
c
)
--coin
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
97574404
,
0
))
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c97574404
.
cointg
)
e1
:
SetOperation
(
c97574404
.
coinop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
aux
.
EnableArcanaCoin
(
c
,
EVENT_SUMMON_SUCCESS
,
EVENT_FLIP_SUMMON_SUCCESS
,
EVENT_SPSUMMON_SUCCESS
)
end
c97574404
.
toss_coin
=
true
function
c97574404
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c97574404
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
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
)
end
function
c97574404
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
utility.lua
View file @
3df1fc2f
...
...
@@ -265,7 +265,7 @@ end
---@param ... integer
function
Auxiliary
.
EnableArcanaCoin
(
c
,
event1
,
...
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1
)
e1
:
SetDescription
(
1
623
)
e1
:
SetCategory
(
CATEGORY_COIN
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
event1
)
...
...
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