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
1ec87298
Commit
1ec87298
authored
Mar 24, 2021
by
salix5
Committed by
GitHub
Mar 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ZW equip (#1598)
parent
36f22f3c
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
42 deletions
+30
-42
c12927849.lua
c12927849.lua
+2
-2
c18865703.lua
c18865703.lua
+2
-2
c2648201.lua
c2648201.lua
+2
-2
c2896663.lua
c2896663.lua
+2
-2
c29353756.lua
c29353756.lua
+2
-2
c32164201.lua
c32164201.lua
+2
-2
c40941889.lua
c40941889.lua
+2
-2
c45082499.lua
c45082499.lua
+2
-2
c60992364.lua
c60992364.lua
+2
-2
c6330307.lua
c6330307.lua
+2
-2
c75402014.lua
c75402014.lua
+4
-16
c76080032.lua
c76080032.lua
+2
-2
c81471108.lua
c81471108.lua
+2
-2
c87008374.lua
c87008374.lua
+2
-2
No files found.
c12927849.lua
View file @
1ec87298
...
@@ -68,9 +68,9 @@ function c12927849.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,9 +68,9 @@ function c12927849.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c12927849
.
equip_monster
(
c
,
tp
,
tc
)
c12927849
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c12927849
.
equip_monster
(
c
,
tp
,
tc
)
function
c12927849
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c18865703.lua
View file @
1ec87298
...
@@ -47,9 +47,9 @@ function c18865703.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,9 +47,9 @@ function c18865703.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c18865703
.
equip_monster
(
c
,
tp
,
tc
)
c18865703
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c18865703
.
equip_monster
(
c
,
tp
,
tc
)
function
c18865703
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c2648201.lua
View file @
1ec87298
...
@@ -46,9 +46,9 @@ function c2648201.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,9 +46,9 @@ function c2648201.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c2648201
.
equip_monster
(
c
,
tp
,
tc
)
c2648201
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c2648201
.
equip_monster
(
c
,
tp
,
tc
)
function
c2648201
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c2896663.lua
View file @
1ec87298
...
@@ -79,9 +79,9 @@ function c2896663.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,9 +79,9 @@ function c2896663.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c2896663
.
equip_monster
(
c
,
tp
,
tc
)
c2896663
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c2896663
.
equip_monster
(
c
,
tp
,
tc
)
function
c2896663
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c29353756.lua
View file @
1ec87298
...
@@ -57,9 +57,9 @@ function c29353756.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,9 +57,9 @@ function c29353756.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c29353756
.
equip_monster
(
c
,
tp
,
tc
)
c29353756
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c29353756
.
equip_monster
(
c
,
tp
,
tc
)
function
c29353756
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c32164201.lua
View file @
1ec87298
...
@@ -57,9 +57,9 @@ function c32164201.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,9 +57,9 @@ function c32164201.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c32164201
.
equip_monster
(
c
,
tp
,
tc
)
c32164201
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c32164201
.
equip_monster
(
c
,
tp
,
tc
)
function
c32164201
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c40941889.lua
View file @
1ec87298
...
@@ -41,9 +41,9 @@ function c40941889.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,9 +41,9 @@ function c40941889.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c40941889
.
equip_monster
(
c
,
tp
,
tc
)
c40941889
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c40941889
.
equip_monster
(
c
,
tp
,
tc
)
function
c40941889
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c45082499.lua
View file @
1ec87298
...
@@ -51,9 +51,9 @@ function c45082499.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,9 +51,9 @@ function c45082499.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c45082499
.
equip_monster
(
c
,
tp
,
tc
)
c45082499
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c45082499
.
equip_monster
(
c
,
tp
,
tc
)
function
c45082499
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c60992364.lua
View file @
1ec87298
...
@@ -78,9 +78,9 @@ function c60992364.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,9 +78,9 @@ function c60992364.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c60992364
.
equip_monster
(
c
,
tp
,
tc
)
c60992364
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c60992364
.
equip_monster
(
c
,
tp
,
tc
)
function
c60992364
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c6330307.lua
View file @
1ec87298
...
@@ -46,9 +46,9 @@ function c6330307.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,9 +46,9 @@ function c6330307.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c6330307
.
equip_monster
(
c
,
tp
,
tc
)
c6330307
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c6330307
.
equip_monster
(
c
,
tp
,
tc
)
function
c6330307
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c75402014.lua
View file @
1ec87298
...
@@ -38,7 +38,8 @@ function c75402014.eqcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,8 @@ function c75402014.eqcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsContains
(
e
:
GetHandler
())
end
end
function
c75402014
.
eqfilter
(
c
,
tp
)
function
c75402014
.
eqfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x107e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
,
LOCATION_SZONE
)
local
mt
=
_G
[
"c"
..
c
:
GetCode
()]
return
mt
.
zw_equip_monster
and
c
:
IsSetCard
(
0x107e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
,
LOCATION_SZONE
)
end
end
function
c75402014
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75402014
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
@@ -53,21 +54,8 @@ function c75402014.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,21 +54,8 @@ function c75402014.eqop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75402014
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75402014
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
local
mt
=
_G
[
"c"
..
tc
:
GetOriginalCode
()]
local
mt
=
_G
[
"c"
..
tc
:
GetCode
()]
if
mt
.
equip_monster
then
mt
.
zw_equip_monster
(
tc
,
tp
,
c
)
mt
.
equip_monster
(
tc
,
tp
,
c
)
else
if
not
Duel
.
Equip
(
tp
,
tc
,
c
)
then
return
end
--equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetLabelObject
(
c
)
e1
:
SetValue
(
c75402014
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
end
function
c75402014
.
eqlimit
(
e
,
c
)
function
c75402014
.
eqlimit
(
e
,
c
)
...
...
c76080032.lua
View file @
1ec87298
...
@@ -54,9 +54,9 @@ function c76080032.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,9 +54,9 @@ function c76080032.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c76080032
.
equip_monster
(
c
,
tp
,
tc
)
c76080032
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c76080032
.
equip_monster
(
c
,
tp
,
tc
)
function
c76080032
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c81471108.lua
View file @
1ec87298
...
@@ -49,9 +49,9 @@ function c81471108.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,9 +49,9 @@ function c81471108.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c81471108
.
equip_monster
(
c
,
tp
,
tc
)
c81471108
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c81471108
.
equip_monster
(
c
,
tp
,
tc
)
function
c81471108
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c87008374.lua
View file @
1ec87298
...
@@ -44,9 +44,9 @@ function c87008374.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,9 +44,9 @@ function c87008374.eqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
return
end
end
c87008374
.
equip_monster
(
c
,
tp
,
tc
)
c87008374
.
zw_
equip_monster
(
c
,
tp
,
tc
)
end
end
function
c87008374
.
equip_monster
(
c
,
tp
,
tc
)
function
c87008374
.
zw_
equip_monster
(
c
,
tp
,
tc
)
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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