Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Ai
ygopro-222DIY-cards
Commits
d06c48da
Commit
d06c48da
authored
Oct 23, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
4a5b33b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
expansions/script/c16150018.lua
expansions/script/c16150018.lua
+19
-2
No files found.
expansions/script/c16150018.lua
View file @
d06c48da
...
...
@@ -155,9 +155,24 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
5
))
+
1
end
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_ADJUST
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
e0
:
SetCondition
(
function
(
e
,
tp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
end
)
tc
:
RegisterEffect
(
e0
,
true
)
if
op
==
0
then
Duel
.
GetControl
(
tc
,
tp
)
e0
:
SetOperation
(
function
(
e
,
sp
)
Duel
.
GetControl
(
tc
,
tp
)
end
)
elseif
op
==
1
then
e0
:
SetOperation
(
function
(
e
,
sp
)
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
,
true
)
then
return
end
--equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -167,7 +182,9 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetLabelObject
(
c
)
e1
:
SetValue
(
cm
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
,
true
)
end
)
end
end
Duel
.
EquipComplete
()
...
...
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