Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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-2pick
Commits
b086b885
Commit
b086b885
authored
Dec 27, 2014
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1054 from sidschingis/warrior-setcode
Warrior setcodes
parents
a08827c9
559879c4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
11 deletions
+10
-11
script/c12525049.lua
script/c12525049.lua
+2
-3
script/c31826057.lua
script/c31826057.lua
+1
-1
script/c36736723.lua
script/c36736723.lua
+1
-1
script/c68933343.lua
script/c68933343.lua
+1
-1
script/c74892653.lua
script/c74892653.lua
+1
-1
script/c75304793.lua
script/c75304793.lua
+3
-3
script/c94331452.lua
script/c94331452.lua
+1
-1
No files found.
script/c12525049.lua
View file @
b086b885
...
@@ -34,7 +34,7 @@ function c12525049.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,7 +34,7 @@ function c12525049.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c12525049
.
spfilter
(
c
,
e
,
tp
)
function
c12525049
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x66
)
and
not
c
:
IsCode
(
12525049
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
10
66
)
and
not
c
:
IsCode
(
12525049
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c12525049
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12525049
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -42,7 +42,6 @@ function c12525049.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,7 +42,6 @@ function c12525049.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c12525049
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12525049
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12525049
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12525049
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
@@ -51,7 +50,7 @@ function c12525049.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +50,7 @@ function c12525049.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c12525049
.
filter
(
c
,
e
,
tp
)
function
c12525049
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x66
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
10
66
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c12525049
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c12525049
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c12525049
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c12525049
.
filter
(
chkc
,
e
,
tp
)
end
...
...
script/c31826057.lua
View file @
b086b885
...
@@ -25,7 +25,7 @@ function c31826057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c31826057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c31826057
.
filter
(
c
)
function
c31826057
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x66
)
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
66
)
and
c
:
IsLevelAbove
(
1
)
end
end
function
c31826057
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c31826057
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c31826057
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c31826057
.
filter
(
chkc
)
end
...
...
script/c36736723.lua
View file @
b086b885
...
@@ -29,7 +29,7 @@ function c36736723.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function c36736723.atkcon(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
then
return
false
end
if
not
tc
then
return
false
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttacker
()
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttacker
()
end
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
return
tc
and
tc
:
IsRelateToBattle
()
and
tc
:
IsSetCard
(
0x
c1
)
and
tc
:
IsType
(
TYPE_SYNCHRO
)
return
tc
and
tc
:
IsRelateToBattle
()
and
tc
:
IsSetCard
(
0x
66
)
and
tc
:
IsType
(
TYPE_SYNCHRO
)
end
end
function
c36736723
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c36736723
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
script/c68933343.lua
View file @
b086b885
...
@@ -25,7 +25,7 @@ function c68933343.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c68933343.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c68933343
.
filter
(
c
)
function
c68933343
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x66
)
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
66
)
and
c
:
IsLevelAbove
(
1
)
end
end
function
c68933343
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c68933343
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c68933343
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c68933343
.
filter
(
chkc
)
end
...
...
script/c74892653.lua
View file @
b086b885
...
@@ -72,7 +72,7 @@ function c74892653.sccon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,7 +72,7 @@ function c74892653.sccon(e,tp,eg,ep,ev,re,r,rp)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c74892653
.
filter
(
c
,
e
,
tp
)
function
c74892653
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
c1
)
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
66
)
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
end
end
function
c74892653
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74892653
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c75304793.lua
View file @
b086b885
...
@@ -20,7 +20,7 @@ function c75304793.initial_effect(c)
...
@@ -20,7 +20,7 @@ function c75304793.initial_effect(c)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x66
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
10
66
))
e3
:
SetValue
(
c75304793
.
atkval
)
e3
:
SetValue
(
c75304793
.
atkval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--counter
--counter
...
@@ -34,7 +34,7 @@ function c75304793.initial_effect(c)
...
@@ -34,7 +34,7 @@ function c75304793.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c75304793
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75304793
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x66
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x
10
66
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c75304793
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75304793
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x35
,
1
)
e
:
GetHandler
():
AddCounter
(
0x35
,
1
)
...
@@ -43,7 +43,7 @@ function c75304793.atkval(e,c)
...
@@ -43,7 +43,7 @@ function c75304793.atkval(e,c)
return
e
:
GetHandler
():
GetCounter
(
0x35
)
*
100
return
e
:
GetHandler
():
GetCounter
(
0x35
)
*
100
end
end
function
c75304793
.
filter
(
c
)
function
c75304793
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x66
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
66
)
end
end
function
c75304793
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75304793
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c75304793
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c75304793
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
...
...
script/c94331452.lua
View file @
b086b885
...
@@ -25,7 +25,7 @@ function c94331452.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c94331452.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c94331452
.
filter
(
c
)
function
c94331452
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x66
)
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
66
)
and
c
:
IsLevelAbove
(
1
)
end
end
function
c94331452
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94331452
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c94331452
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c94331452
.
filter
(
chkc
)
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