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
0ea2e0dc
Commit
0ea2e0dc
authored
Nov 03, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add FLAG_ID_ARCANA_COIN
parent
23e95044
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
39 additions
and
36 deletions
+39
-36
c23846921.lua
c23846921.lua
+3
-3
c34568403.lua
c34568403.lua
+2
-2
c35781051.lua
c35781051.lua
+3
-3
c5861892.lua
c5861892.lua
+3
-3
c60953118.lua
c60953118.lua
+3
-3
c61175706.lua
c61175706.lua
+2
-2
c62892347.lua
c62892347.lua
+3
-3
c69831560.lua
c69831560.lua
+4
-4
c73206827.lua
c73206827.lua
+6
-5
c8396952.lua
c8396952.lua
+2
-2
c97452817.lua
c97452817.lua
+3
-3
c97574404.lua
c97574404.lua
+3
-3
constant.lua
constant.lua
+2
-0
No files found.
c23846921.lua
View file @
0ea2e0dc
...
@@ -58,10 +58,10 @@ function c23846921.arcanareg(c,coin)
...
@@ -58,10 +58,10 @@ function c23846921.arcanareg(c,coin)
e2
:
SetOperation
(
c23846921
.
thop
)
e2
:
SetOperation
(
c23846921
.
thop
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c23846921
.
skipcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23846921
.
skipcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
return
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
end
end
function
c23846921
.
skipcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23846921
.
skipcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
...
@@ -82,7 +82,7 @@ function c23846921.skipop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,7 +82,7 @@ function c23846921.skipop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c23846921
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23846921
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
end
end
function
c23846921
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23846921
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c34568403.lua
View file @
0ea2e0dc
...
@@ -46,11 +46,11 @@ function c34568403.arcanareg(c,coin)
...
@@ -46,11 +46,11 @@ function c34568403.arcanareg(c,coin)
e1
:
SetOperation
(
c34568403
.
spop
)
e1
:
SetOperation
(
c34568403
.
spop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c34568403
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34568403
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffectLabel
(
36690018
)
==
1
and
c
:
IsRelateToBattle
()
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
return
c
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
and
c
:
IsRelateToBattle
()
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
end
end
function
c34568403
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34568403
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
c35781051.lua
View file @
0ea2e0dc
...
@@ -62,10 +62,10 @@ function c35781051.arcanareg(c,coin)
...
@@ -62,10 +62,10 @@ function c35781051.arcanareg(c,coin)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_MSET
)
e4
:
SetCode
(
EVENT_MSET
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c35781051
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35781051
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
end
end
function
c35781051
.
spfilter
(
c
,
e
,
tp
)
function
c35781051
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -84,7 +84,7 @@ function c35781051.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -84,7 +84,7 @@ function c35781051.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c35781051
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35781051
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
end
end
function
c35781051
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c35781051
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c5861892.lua
View file @
0ea2e0dc
...
@@ -92,11 +92,11 @@ function c5861892.arcanareg(c,coin)
...
@@ -92,11 +92,11 @@ function c5861892.arcanareg(c,coin)
e2
:
SetOperation
(
c5861892
.
negop
)
e2
:
SetOperation
(
c5861892
.
negop
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c5861892
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5861892
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffectLabel
(
36690018
)
==
1
and
c
:
IsRelateToBattle
()
return
c
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
and
c
:
IsRelateToBattle
()
and
c
:
GetBattleTarget
():
IsLocation
(
LOCATION_GRAVE
)
and
c
:
GetBattleTarget
():
IsLocation
(
LOCATION_GRAVE
)
end
end
function
c5861892
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c5861892
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
@@ -118,7 +118,7 @@ function c5861892.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -118,7 +118,7 @@ function c5861892.negcon(e,tp,eg,ep,ev,re,r,rp)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
return
c
:
GetFlagEffectLabel
(
36690018
)
==
0
and
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
return
c
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
and
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
end
end
function
c5861892
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5861892
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c60953118.lua
View file @
0ea2e0dc
...
@@ -73,11 +73,11 @@ function c60953118.arcanareg(c,coin)
...
@@ -73,11 +73,11 @@ function c60953118.arcanareg(c,coin)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetCondition
(
c60953118
.
rdcon2
)
e2
:
SetCondition
(
c60953118
.
rdcon2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c60953118
.
rdcon1
(
e
)
function
c60953118
.
rdcon1
(
e
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
return
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
end
end
function
c60953118
.
rdcon2
(
e
)
function
c60953118
.
rdcon2
(
e
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
return
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
end
end
c61175706.lua
View file @
0ea2e0dc
...
@@ -43,13 +43,13 @@ function c61175706.arcanareg(c,coin)
...
@@ -43,13 +43,13 @@ function c61175706.arcanareg(c,coin)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c61175706
.
atktg
(
e
,
c
)
function
c61175706
.
atktg
(
e
,
c
)
return
c
:
IsSetCard
(
0x5
)
return
c
:
IsSetCard
(
0x5
)
end
end
function
c61175706
.
atkval
(
e
,
c
)
function
c61175706
.
atkval
(
e
,
c
)
if
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
then
if
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
then
return
500
return
500
else
return
-
500
end
else
return
-
500
end
end
end
c62892347.lua
View file @
0ea2e0dc
...
@@ -73,12 +73,12 @@ function c62892347.arcanareg(c,coin)
...
@@ -73,12 +73,12 @@ function c62892347.arcanareg(c,coin)
e3
:
SetTarget
(
c62892347
.
distg
)
e3
:
SetTarget
(
c62892347
.
distg
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c62892347
.
distg
(
e
,
c
)
function
c62892347
.
distg
(
e
,
c
)
local
ec
=
e
:
GetHandler
()
local
ec
=
e
:
GetHandler
()
if
c
==
ec
or
c
:
GetCardTargetCount
()
==
0
then
return
false
end
if
c
==
ec
or
c
:
GetCardTargetCount
()
==
0
then
return
false
end
local
val
=
ec
:
GetFlagEffectLabel
(
36690018
)
local
val
=
ec
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
if
val
==
1
then
if
val
==
1
then
return
c
:
GetControler
()
==
ec
:
GetControler
()
and
c
:
GetCardTarget
():
IsContains
(
ec
)
return
c
:
GetControler
()
==
ec
:
GetControler
()
and
c
:
GetCardTarget
():
IsContains
(
ec
)
else
return
c
:
GetControler
()
~=
ec
:
GetControler
()
and
c
:
GetCardTarget
():
IsContains
(
ec
)
end
else
return
c
:
GetControler
()
~=
ec
:
GetControler
()
and
c
:
GetCardTarget
():
IsContains
(
ec
)
end
...
@@ -87,7 +87,7 @@ function c62892347.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,7 +87,7 @@ function c62892347.disop(e,tp,eg,ep,ev,re,r,rp)
local
ec
=
e
:
GetHandler
()
local
ec
=
e
:
GetHandler
()
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
ec
:
IsRelateToEffect
(
re
)
then
return
end
if
not
ec
:
IsRelateToEffect
(
re
)
then
return
end
local
val
=
ec
:
GetFlagEffectLabel
(
36690018
)
local
val
=
ec
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
if
(
val
==
1
and
rp
==
1
-
ec
:
GetControler
())
or
(
val
==
0
and
rp
==
ec
:
GetControler
())
then
return
end
if
(
val
==
1
and
rp
==
1
-
ec
:
GetControler
())
or
(
val
==
0
and
rp
==
ec
:
GetControler
())
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsContains
(
ec
)
then
return
end
if
not
g
or
not
g
:
IsContains
(
ec
)
then
return
end
...
...
c69831560.lua
View file @
0ea2e0dc
...
@@ -99,14 +99,14 @@ function c69831560.arcanareg(c,coin)
...
@@ -99,14 +99,14 @@ function c69831560.arcanareg(c,coin)
e4
:
SetReset
(
RESET_EVENT
+
RESET_OVERLAY
+
RESET_TOFIELD
)
e4
:
SetReset
(
RESET_EVENT
+
RESET_OVERLAY
+
RESET_TOFIELD
)
e4
:
SetLabelObject
(
e3
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c69831560
.
macon
(
e
)
function
c69831560
.
macon
(
e
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
return
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
end
end
function
c69831560
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69831560
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffectLabel
(
36690018
)
==
1
and
c
:
GetAttackAnnouncedCount
()
>=
2
return
c
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
and
c
:
GetAttackAnnouncedCount
()
>=
2
end
end
function
c69831560
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69831560
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -121,7 +121,7 @@ function c69831560.posop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -121,7 +121,7 @@ function c69831560.posop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c69831560
.
desop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69831560
.
desop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
then
if
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
then
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
else
e
:
SetLabel
(
0
)
end
end
end
...
...
c73206827.lua
View file @
0ea2e0dc
...
@@ -22,9 +22,9 @@ function c73206827.initial_effect(c)
...
@@ -22,9 +22,9 @@ function c73206827.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
73206827
)
e3
:
SetCode
(
73206827
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x5
))
e3
:
SetCondition
(
c73206827
.
effectcon
)
e3
:
SetCondition
(
c73206827
.
effectcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--
--
...
@@ -61,8 +61,7 @@ end
...
@@ -61,8 +61,7 @@ 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
()
local
rc
=
eg
:
GetFirst
()
local
rc
=
eg
:
GetFirst
()
return
rc
:
IsRelateToBattle
()
and
rc
:
IsSetCard
(
0x5
)
and
rc
:
IsFaceup
()
and
rc
:
IsControler
(
tp
)
return
c73206827
.
effectcon
(
e
)
and
rc
:
IsRelateToBattle
()
and
rc
:
IsSetCard
(
0x5
)
and
rc
:
IsFaceup
()
and
rc
:
IsControler
(
tp
)
and
(
c
:
GetFlagEffect
(
73206828
)
==
0
or
c
:
IsHasEffect
(
EFFECT_CANNOT_DISABLE
))
end
end
function
c73206827
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73206827
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -75,5 +74,7 @@ function c73206827.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,5 +74,7 @@ function c73206827.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c73206827
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73206827
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
if
d
>
0
then
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
end
end
c8396952.lua
View file @
0ea2e0dc
...
@@ -40,12 +40,12 @@ function c8396952.arcanareg(c,coin)
...
@@ -40,12 +40,12 @@ function c8396952.arcanareg(c,coin)
e1
:
SetOperation
(
c8396952
.
speop
)
e1
:
SetOperation
(
c8396952
.
speop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c8396952
.
speop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8396952
.
speop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
re
:
IsActiveType
(
TYPE_SPELL
)
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
if
not
re
:
IsActiveType
(
TYPE_SPELL
)
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
local
val
=
c
:
GetFlagEffectLabel
(
36690018
)
local
val
=
c
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
if
val
==
1
then
if
val
==
1
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c97452817.lua
View file @
0ea2e0dc
...
@@ -59,10 +59,10 @@ function c97452817.arcanareg(c,coin)
...
@@ -59,10 +59,10 @@ function c97452817.arcanareg(c,coin)
e2
:
SetOperation
(
c97452817
.
ctop
)
e2
:
SetOperation
(
c97452817
.
ctop
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c97452817
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97452817
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
return
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
end
end
function
c97452817
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97452817
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -77,7 +77,7 @@ function c97452817.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,7 +77,7 @@ function c97452817.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c97452817
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97452817
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
return
ep
==
tp
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
end
end
function
c97452817
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c97452817
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsAbleToChangeControler
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsAbleToChangeControler
()
end
...
...
c97574404.lua
View file @
0ea2e0dc
...
@@ -54,16 +54,16 @@ function c97574404.arcanareg(c,coin)
...
@@ -54,16 +54,16 @@ function c97574404.arcanareg(c,coin)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_MSET
)
e3
:
SetCode
(
EFFECT_CANNOT_MSET
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
coin
,
63
-
coin
)
end
end
function
c97574404
.
dtcon
(
e
)
function
c97574404
.
dtcon
(
e
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
return
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
1
end
end
function
c97574404
.
dtval
(
e
,
c
)
function
c97574404
.
dtval
(
e
,
c
)
return
c
:
IsSetCard
(
0x5
)
return
c
:
IsSetCard
(
0x5
)
end
end
function
c97574404
.
sumcon
(
e
)
function
c97574404
.
sumcon
(
e
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
return
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
end
end
function
c97574404
.
sumtg
(
e
,
c
,
tp
,
sumtp
)
function
c97574404
.
sumtg
(
e
,
c
,
tp
,
sumtp
)
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
c
:
IsSetCard
(
0x5
)
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
c
:
IsSetCard
(
0x5
)
...
...
constant.lua
View file @
0ea2e0dc
...
@@ -892,3 +892,5 @@ FLAG_ID_CHAINING =1
...
@@ -892,3 +892,5 @@ FLAG_ID_CHAINING =1
FLAG_ID_UNION
=
2
FLAG_ID_UNION
=
2
FLAG_ID_NO_NORMAL_DRAW
=
3
FLAG_ID_NO_NORMAL_DRAW
=
3
FLAG_ID_ALLURE_QUEEN
=
4
FLAG_ID_ALLURE_QUEEN
=
4
FLAG_ID_ARCANA_COIN
=
5
FLAG_ID_REVERSAL_OF_FATE
=
36690018
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