Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
2685b89a
Commit
2685b89a
authored
Apr 01, 2022
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround fix: change dice
parent
ea9ab75b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
c35772782.lua
c35772782.lua
+1
-2
c39454112.lua
c39454112.lua
+1
-2
utility.lua
utility.lua
+0
-1
No files found.
c35772782.lua
View file @
2685b89a
...
...
@@ -84,7 +84,7 @@ end
function
c35772782
.
diceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cc
=
Duel
.
GetCurrentChain
()
local
cid
=
Duel
.
GetChainInfo
(
cc
,
CHAININFO_CHAIN_ID
)
if
aux
.
dice_chain_id
~=
cid
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
35772782
,
1
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
35772782
,
1
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
35772782
)
e
:
GetHandler
():
RegisterFlagEffect
(
35772782
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
dc
=
{
Duel
.
GetDiceResult
()}
...
...
@@ -98,6 +98,5 @@ function c35772782.diceop(e,tp,eg,ep,ev,re,r,rp)
end
dc
[
ac
]
=
7
Duel
.
SetDiceResult
(
table.unpack
(
dc
))
aux
.
dice_chain_id
=
cid
end
end
c39454112.lua
View file @
2685b89a
...
...
@@ -16,7 +16,7 @@ end
function
c39454112
.
diceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cc
=
Duel
.
GetCurrentChain
()
local
cid
=
Duel
.
GetChainInfo
(
cc
,
CHAININFO_CHAIN_ID
)
if
aux
.
dice_chain_id
~=
cid
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39454112
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
39454112
,
0
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
39454112
)
local
dc
=
{
Duel
.
GetDiceResult
()}
local
ac
=
1
...
...
@@ -30,6 +30,5 @@ function c39454112.diceop(e,tp,eg,ep,ev,re,r,rp)
if
dc
[
ac
]
==
1
or
dc
[
ac
]
==
3
or
dc
[
ac
]
==
5
then
dc
[
ac
]
=
6
else
dc
[
ac
]
=
1
end
Duel
.
SetDiceResult
(
table.unpack
(
dc
))
aux
.
dice_chain_id
=
cid
end
end
utility.lua
View file @
2685b89a
...
...
@@ -55,7 +55,6 @@ function Auxiliary.GetXyzNumber(v)
end
--the chain id of the results modified by EVENT_TOSS_DICE_NEGATE
Auxiliary
.
dice_chain_id
=
0
Auxiliary
.
idx_table
=
table.pack
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
)
function
Auxiliary
.
Stringid
(
code
,
id
)
...
...
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