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
c6713885
Commit
c6713885
authored
Aug 04, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cannot activate with same name
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=20708
parent
497e535c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
21 deletions
+14
-21
c14055212.lua
c14055212.lua
+2
-3
c26202165.lua
c26202165.lua
+2
-3
c26232916.lua
c26232916.lua
+2
-3
c55351724.lua
c55351724.lua
+2
-3
c68431965.lua
c68431965.lua
+2
-3
c78010363.lua
c78010363.lua
+2
-3
c81055000.lua
c81055000.lua
+2
-3
No files found.
c14055212.lua
View file @
c6713885
...
@@ -31,13 +31,12 @@ function c14055212.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,13 +31,12 @@ function c14055212.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
c14055212
.
actlimit
)
e1
:
SetValue
(
c14055212
.
actlimit
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
tc
:
GetCode
()
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
end
end
function
c14055212
.
aclimit
(
e
,
re
,
tp
)
function
c14055212
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
c26202165.lua
View file @
c6713885
...
@@ -36,13 +36,12 @@ function c26202165.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,13 +36,12 @@ function c26202165.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
c26202165
.
aclimit
)
e1
:
SetValue
(
c26202165
.
aclimit
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
tc
:
GetCode
()
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
end
end
function
c26202165
.
aclimit
(
e
,
re
,
tp
)
function
c26202165
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
c26232916.lua
View file @
c6713885
...
@@ -63,14 +63,13 @@ function c26232916.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,14 +63,13 @@ function c26232916.thop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
c26232916
.
aclimit
)
e1
:
SetValue
(
c26232916
.
aclimit
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
tc
:
GetCode
()
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c26232916
.
aclimit
(
e
,
re
,
tp
)
function
c26232916
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
function
c26232916
.
repfilter
(
c
,
tp
)
function
c26232916
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
or
c
:
IsSetCard
(
0x61
))
return
c
:
IsFaceup
()
and
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
or
c
:
IsSetCard
(
0x61
))
...
...
c55351724.lua
View file @
c6713885
...
@@ -32,12 +32,11 @@ function c55351724.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,12 +32,11 @@ function c55351724.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
c55351724
.
actlimit
)
e1
:
SetValue
(
c55351724
.
actlimit
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
tc
:
GetCode
()
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c55351724
.
actlimit
(
e
,
re
,
tp
)
function
c55351724
.
actlimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
c68431965.lua
View file @
c6713885
...
@@ -58,14 +58,13 @@ function c68431965.lvop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,14 +58,13 @@ function c68431965.lvop1(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
c68431965
.
aclimit
)
e2
:
SetValue
(
c68431965
.
aclimit
)
e2
:
SetLabel
Object
(
g
:
GetFirst
())
e2
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c68431965
.
aclimit
(
e
,
re
,
tp
)
function
c68431965
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
function
c68431965
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68431965
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
...
...
c78010363.lua
View file @
c6713885
...
@@ -36,13 +36,12 @@ function c78010363.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,13 +36,12 @@ function c78010363.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
c78010363
.
aclimit
)
e1
:
SetValue
(
c78010363
.
aclimit
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
tc
:
GetCode
()
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
end
end
function
c78010363
.
aclimit
(
e
,
re
,
tp
)
function
c78010363
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
c81055000.lua
View file @
c6713885
...
@@ -43,15 +43,14 @@ function c81055000.thop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,15 +43,14 @@ function c81055000.thop1(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
tc
:
GetCode
()
)
e1
:
SetValue
(
c81055000
.
aclimit
)
e1
:
SetValue
(
c81055000
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c81055000
.
aclimit
(
e
,
re
,
tp
)
function
c81055000
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
end
function
c81055000
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c81055000
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsAbleToHand
()
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsAbleToHand
()
end
...
...
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