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
fcb632fc
Commit
fcb632fc
authored
Aug 03, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix target monster as equip card
parent
7834a3cc
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
29 additions
and
35 deletions
+29
-35
c11743119.lua
c11743119.lua
+1
-1
c14466224.lua
c14466224.lua
+1
-1
c16255173.lua
c16255173.lua
+1
-1
c22842214.lua
c22842214.lua
+1
-3
c23756165.lua
c23756165.lua
+1
-1
c31930787.lua
c31930787.lua
+1
-1
c3897065.lua
c3897065.lua
+1
-1
c39987164.lua
c39987164.lua
+1
-1
c40267580.lua
c40267580.lua
+1
-3
c41578483.lua
c41578483.lua
+1
-1
c4252828.lua
c4252828.lua
+1
-1
c4545683.lua
c4545683.lua
+1
-1
c48868994.lua
c48868994.lua
+1
-1
c50140163.lua
c50140163.lua
+1
-1
c57784563.lua
c57784563.lua
+1
-1
c6075801.lua
c6075801.lua
+1
-1
c63465535.lua
c63465535.lua
+1
-1
c63468625.lua
c63468625.lua
+1
-1
c63519819.lua
c63519819.lua
+1
-1
c6387204.lua
c6387204.lua
+1
-1
c64631466.lua
c64631466.lua
+1
-1
c66094973.lua
c66094973.lua
+1
-1
c68140974.lua
c68140974.lua
+1
-1
c77693536.lua
c77693536.lua
+1
-1
c80769747.lua
c80769747.lua
+1
-3
c82962242.lua
c82962242.lua
+1
-1
c83965310.lua
c83965310.lua
+1
-1
c87257460.lua
c87257460.lua
+1
-1
c94259633.lua
c94259633.lua
+1
-1
No files found.
c11743119.lua
View file @
fcb632fc
...
...
@@ -48,6 +48,6 @@ function c11743119.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c11743119
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
c14466224.lua
View file @
fcb632fc
...
...
@@ -98,6 +98,6 @@ function c14466224.eqop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetValue
(
def
)
tc
:
RegisterEffect
(
e3
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
c16255173.lua
View file @
fcb632fc
...
...
@@ -64,7 +64,7 @@ function c16255173.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterFlagEffect
(
16255173
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
function
c16255173
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
...
...
c22842214.lua
View file @
fcb632fc
...
...
@@ -75,9 +75,7 @@ function c22842214.eqop(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
EquipComplete
()
end
else
Duel
.
SendtoGrave
(
tg0
,
REASON_EFFECT
)
end
else
Duel
.
SendtoGrave
(
tg0
,
REASON_RULE
)
end
end
function
c22842214
.
eqfilter
(
c
,
ec
)
return
c
:
GetFlagEffect
(
22842214
)
~=
0
and
c
:
IsHasCardTarget
(
ec
)
...
...
c23756165.lua
View file @
fcb632fc
...
...
@@ -87,7 +87,7 @@ function c23756165.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
c23756165
.
repval
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c23756165
.
repval
(
e
,
re
,
r
,
rp
)
...
...
c31930787.lua
View file @
fcb632fc
...
...
@@ -109,7 +109,7 @@ function c31930787.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c31930787
.
dircon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c3897065.lua
View file @
fcb632fc
...
...
@@ -67,7 +67,7 @@ function c3897065.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
3897065
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c3897065
.
atcon
(
e
)
...
...
c39987164.lua
View file @
fcb632fc
...
...
@@ -59,7 +59,7 @@ function c39987164.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c39987164
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c39987164
.
desfilter
(
c
,
att
)
...
...
c40267580.lua
View file @
fcb632fc
...
...
@@ -56,9 +56,7 @@ function c40267580.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
tp
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
end
else
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
end
function
c40267580
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c41578483.lua
View file @
fcb632fc
...
...
@@ -91,7 +91,7 @@ function c41578483.eqop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsControler
(
1
-
tp
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
c41578483
.
equip_monster
(
c
,
tp
,
tc
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c41578483
.
atkval
(
e
,
c
)
...
...
c4252828.lua
View file @
fcb632fc
...
...
@@ -64,7 +64,7 @@ function c4252828.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
800
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c4252828
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c4545683.lua
View file @
fcb632fc
...
...
@@ -114,7 +114,7 @@ function c4545683.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c4545683
.
spfilter
(
c
,
e
,
tp
,
ec
)
...
...
c48868994.lua
View file @
fcb632fc
...
...
@@ -83,6 +83,6 @@ function c48868994.opd(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
48868994
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
c50140163.lua
View file @
fcb632fc
...
...
@@ -74,7 +74,7 @@ function c50140163.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
c50140163
.
repval
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c50140163
.
repval
(
e
,
re
,
r
,
rp
)
...
...
c57784563.lua
View file @
fcb632fc
...
...
@@ -64,6 +64,6 @@ function c57784563.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
c6075801.lua
View file @
fcb632fc
...
...
@@ -56,7 +56,7 @@ function c6075801.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c6075801
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
function
c6075801
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
...
...
c63465535.lua
View file @
fcb632fc
...
...
@@ -77,7 +77,7 @@ function c63465535.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c63465535
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c63465535
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c63468625.lua
View file @
fcb632fc
...
...
@@ -93,7 +93,7 @@ function c63468625.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterFlagEffect
(
63468625
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c63468625
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c63519819.lua
View file @
fcb632fc
...
...
@@ -93,7 +93,7 @@ function c63519819.eqop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsControler
(
1
-
tp
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
c63519819
.
equip_monster
(
c
,
tp
,
tc
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c63519819
.
repval
(
e
,
re
,
r
,
rp
)
...
...
c6387204.lua
View file @
fcb632fc
...
...
@@ -53,7 +53,7 @@ function c6387204.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
1000
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterFlagEffect
(
6387204
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c64631466.lua
View file @
fcb632fc
...
...
@@ -87,7 +87,7 @@ function c64631466.eqop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsControler
(
1
-
tp
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
c64631466
.
equip_monster
(
c
,
tp
,
tc
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c64631466
.
repval
(
e
,
re
,
r
,
rp
)
...
...
c66094973.lua
View file @
fcb632fc
...
...
@@ -87,7 +87,7 @@ function c66094973.eqop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
66094973
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c66094973
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c68140974.lua
View file @
fcb632fc
...
...
@@ -113,7 +113,7 @@ function c68140974.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c68140974
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c77693536.lua
View file @
fcb632fc
...
...
@@ -72,7 +72,7 @@ function c77693536.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
c77693536
.
eqlimit
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
function
c77693536
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
...
...
c80769747.lua
View file @
fcb632fc
...
...
@@ -59,9 +59,7 @@ function c80769747.eqop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetValue
(
-
800
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
else
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
end
else
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
end
function
c80769747
.
ddescon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c82962242.lua
View file @
fcb632fc
...
...
@@ -82,7 +82,7 @@ function c82962242.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterFlagEffect
(
82962242
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
function
c82962242
.
eqlimit
(
e
,
c
)
return
e
:
GetOwner
()
==
c
and
not
c
:
IsDisabled
()
...
...
c83965310.lua
View file @
fcb632fc
...
...
@@ -112,6 +112,6 @@ function c83965310.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
c87257460.lua
View file @
fcb632fc
...
...
@@ -69,7 +69,7 @@ function c87257460.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
c87257460
.
repval
)
tc
:
RegisterEffect
(
e2
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c87257460
.
repval
(
e
,
re
,
r
,
rp
)
...
...
c94259633.lua
View file @
fcb632fc
...
...
@@ -71,7 +71,7 @@ function c94259633.eqop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
if
c
:
IsRelateToEffect
(
e
)
then
c94259633
.
equip_monster
(
c
,
tp
,
tc
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_
EFFECT
)
end
else
Duel
.
SendtoGrave
(
tc
,
REASON_
RULE
)
end
end
end
function
c94259633
.
adcon
(
e
)
...
...
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