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
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
Vee4
ygopro-scripts-888
Commits
b8c2761d
Commit
b8c2761d
authored
Dec 28, 2021
by
mercury233
Committed by
GitHub
Dec 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Auxiliary.EnableChangeCode (#1779)
parent
4696f27c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
c58153103.lua
c58153103.lua
+1
-3
utility.lua
utility.lua
+1
-0
No files found.
c58153103.lua
View file @
b8c2761d
...
@@ -17,9 +17,7 @@ end
...
@@ -17,9 +17,7 @@ end
function
c58153103
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58153103
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
--change name
--change name
local
e0
,
e1
=
aux
.
EnableChangeCode
(
c
,
59464593
,
LOCATION_MZONE
,
c58153103
.
condition
)
local
e1
=
aux
.
EnableChangeCode
(
c
,
59464593
,
LOCATION_MZONE
,
c58153103
.
condition
)
e0
:
SetLabel
(
1
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetLabel
(
1
)
e1
:
SetLabel
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
--control
--control
...
...
utility.lua
View file @
b8c2761d
...
@@ -264,6 +264,7 @@ function Auxiliary.EnableChangeCode(c,code,location,condition)
...
@@ -264,6 +264,7 @@ function Auxiliary.EnableChangeCode(c,code,location,condition)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetRange
(
loc
)
e1
:
SetRange
(
loc
)
e1
:
SetCondition
(
condition
)
e1
:
SetValue
(
code
)
e1
:
SetValue
(
code
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
return
e1
return
e1
...
...
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