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
e54db7a7
Commit
e54db7a7
authored
Nov 04, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Auxiliary.ArcanaCoinOperation
parent
0c299133
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
c34568403.lua
c34568403.lua
+5
-1
utility.lua
utility.lua
+6
-2
No files found.
c34568403.lua
View file @
e54db7a7
...
@@ -20,12 +20,16 @@ end
...
@@ -20,12 +20,16 @@ end
c34568403
.
toss_coin
=
true
c34568403
.
toss_coin
=
true
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
local
res
=
0
local
res
=
0
local
toss
=
false
if
c
:
IsHasEffect
(
73206827
)
then
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
res
=
Duel
.
TossCoin
(
tp
,
1
)
toss
=
true
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
toss
then
c
:
RegisterFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
c
:
RegisterFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
c34568403
.
arcanareg
(
c
,
res
)
c34568403
.
arcanareg
(
c
,
res
)
...
...
utility.lua
View file @
e54db7a7
...
@@ -259,7 +259,7 @@ function Auxiliary.NeosReturnTargetOptional(set_category)
...
@@ -259,7 +259,7 @@ function Auxiliary.NeosReturnTargetOptional(set_category)
if
set_category
then
set_category
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
set_category
then
set_category
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
end
end
---
---
add "Toss a coin and get the following effects" effect to Arcana Force monsters
---@param c Card
---@param c Card
---@param event1 integer
---@param event1 integer
---@param ... integer
---@param ... integer
...
@@ -284,12 +284,16 @@ function Auxiliary.ArcanaCoinTarget(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -284,12 +284,16 @@ function Auxiliary.ArcanaCoinTarget(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
Auxiliary
.
ArcanaCoinOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
ArcanaCoinOperation
(
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
local
res
=
0
local
res
=
0
local
toss
=
false
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
73206827
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
res
=
Duel
.
TossCoin
(
tp
,
1
)
toss
=
true
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
toss
then
c
:
RegisterFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
c
:
RegisterFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
c
.
arcanareg
(
c
,
res
)
c
.
arcanareg
(
c
,
res
)
...
...
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