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
八宫一月
ygopro-scripts
Commits
ef856599
Commit
ef856599
authored
Aug 21, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix equip
parent
df6b9c51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
c25682811.lua
c25682811.lua
+2
-1
c35906693.lua
c35906693.lua
+2
-1
No files found.
c25682811.lua
View file @
ef856599
...
...
@@ -47,7 +47,7 @@ function c25682811.eqop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
sg
:
GetFirst
()
while
tc
do
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
Duel
.
Equip
(
tp
,
tc
,
c
,
false
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
...
...
@@ -57,6 +57,7 @@ function c25682811.eqop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
=
sg
:
GetNext
()
end
Duel
.
EquipComplete
()
end
function
c25682811
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
...
...
c35906693.lua
View file @
ef856599
...
...
@@ -75,7 +75,7 @@ function c35906693.eqop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c35906693
.
eqcheck
,
false
,
1
,
ft
)
local
ec
=
sg
:
GetFirst
()
while
ec
do
Duel
.
Equip
(
tp
,
ec
,
tc
)
Duel
.
Equip
(
tp
,
ec
,
tc
,
true
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
...
...
@@ -86,6 +86,7 @@ function c35906693.eqop(e,tp,eg,ep,ev,re,r,rp)
ec
:
RegisterEffect
(
e1
)
ec
=
sg
:
GetNext
()
end
Duel
.
EquipComplete
()
end
function
c35906693
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
...
...
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