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
a0f88331
Commit
a0f88331
authored
Nov 03, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 逆転する運命
parent
0ea2e0dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
c36690018.lua
c36690018.lua
+4
-4
c99189322.lua
c99189322.lua
+7
-6
No files found.
c36690018.lua
View file @
a0f88331
...
...
@@ -11,7 +11,7 @@ function c36690018.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c36690018
.
filter
(
c
)
return
c
:
GetFlagEffect
(
36690018
)
~=
0
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5
)
and
c
:
GetFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
)
~=
0
end
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
...
...
@@ -21,8 +21,8 @@ function c36690018.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c36690018
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
c36690018
.
filter
(
tc
)
then
local
val
=
tc
:
GetFlagEffectLabel
(
36690018
)
tc
:
SetFlagEffectLabel
(
36690018
,
1
-
val
)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
)
~=
0
and
tc
:
GetFlagEffect
(
FLAG_ID_ARCANA_COIN
)
~=
0
then
local
val
=
tc
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
tc
:
SetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
,
1
-
val
)
end
end
c99189322.lua
View file @
a0f88331
...
...
@@ -11,7 +11,7 @@ function c99189322.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c99189322
.
filter
(
c
)
return
c
:
GetFlagEffect
(
36690018
)
~=
0
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5
)
and
c
:
GetFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
)
~=
0
end
function
c99189322
.
rfilter
(
c
)
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsAbleToRemove
()
...
...
@@ -33,11 +33,12 @@ function c99189322.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
if
tc
==
regc
then
tc
=
g
:
GetNext
()
end
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
c99189322
.
filter
(
tc
)
and
regc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
regc
,
POS_FACEUP
,
REASON_EFFECT
)
if
not
regc
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
Remove
(
regc
,
POS_FACEUP
,
REASON_EFFECT
)
==
0
or
not
regc
:
IsLocation
(
LOCATION_REMOVED
)
then
return
end
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
)
~=
0
and
tc
:
GetFlagEffect
(
FLAG_ID_ARCANA_COIN
)
~=
0
then
local
regfun
=
regc
.
arcanareg
if
not
regfun
then
return
end
local
val
=
tc
:
GetFlagEffectLabel
(
36690018
)
local
val
=
tc
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
tc
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
)
regfun
(
tc
,
val
)
tc
:
RegisterFlagEffect
(
99189322
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
@@ -53,10 +54,10 @@ function c99189322.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c99189322
.
rec_effect
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
99189322
)
==
0
or
tc
:
GetFlagEffect
(
36690018
)
==
0
then
return
end
if
tc
:
GetFlagEffect
(
99189322
)
==
0
then
return
end
local
regfun
=
tc
.
arcanareg
if
not
regfun
then
return
end
local
val
=
tc
:
GetFlagEffectLabel
(
36690018
)
local
val
=
tc
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
tc
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
)
regfun
(
tc
,
val
)
end
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