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
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
Commits
10ac205d
Commit
10ac205d
authored
Apr 18, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #374 from nekrozar/patch-2
change setcode
parents
170f44d5
fbabdab3
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
13 deletions
+13
-13
c14094090.lua
c14094090.lua
+2
-2
c29904964.lua
c29904964.lua
+2
-2
c32013448.lua
c32013448.lua
+1
-1
c40089744.lua
c40089744.lua
+1
-1
c6628343.lua
c6628343.lua
+1
-1
c73694478.lua
c73694478.lua
+3
-3
c7841921.lua
c7841921.lua
+1
-1
c79234734.lua
c79234734.lua
+1
-1
c799183.lua
c799183.lua
+1
-1
No files found.
c14094090.lua
View file @
10ac205d
...
...
@@ -14,7 +14,7 @@ function c14094090.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c14094090
.
ritual_filter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsSetCard
(
0xcf
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsSetCard
(
0x
10
cf
)
end
function
c14094090
.
cfilter
(
c
,
att
)
return
c
:
IsAttribute
(
att
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
@@ -32,7 +32,7 @@ function c14094090.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
end
function
c14094090
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xcf
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsSetCard
(
0x
10
cf
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c14094090
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c29904964.lua
View file @
10ac205d
...
...
@@ -33,7 +33,7 @@ function c29904964.ntcon(e,c,minc)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
end
function
c29904964
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xcf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
10
cf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c29904964
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29904964
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
@@ -47,5 +47,5 @@ function c29904964.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c29904964
.
mtval
(
e
,
c
)
return
c
:
IsSetCard
(
0xcf
)
return
c
:
IsSetCard
(
0x
10
cf
)
end
c32013448.lua
View file @
10ac205d
...
...
@@ -26,7 +26,7 @@ end
function
c32013448
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
32013448
)
~=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
g
=
eg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0xcf
)
local
g
=
eg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0x
10
cf
)
local
rc
=
g
:
GetFirst
()
if
not
rc
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c40089744.lua
View file @
10ac205d
...
...
@@ -30,7 +30,7 @@ function c40089744.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c40089744
.
filter
(
c
)
return
((
c
:
IsSetCard
(
0xcf
)
and
c
:
IsType
(
TYPE_RITUAL
))
or
c
:
IsSetCard
(
0xbd
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
((
c
:
IsSetCard
(
0x
10
cf
)
and
c
:
IsType
(
TYPE_RITUAL
))
or
c
:
IsSetCard
(
0xbd
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c40089744
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40089744
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c6628343.lua
View file @
10ac205d
...
...
@@ -26,7 +26,7 @@ end
function
c6628343
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
6628343
)
~=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
g
=
eg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0xcf
)
local
g
=
eg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0x
10
cf
)
local
rc
=
g
:
GetFirst
()
if
not
rc
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c73694478.lua
View file @
10ac205d
...
...
@@ -25,11 +25,11 @@ function c73694478.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c73694478
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcf
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
10
cf
)
and
Duel
.
IsExistingMatchingCard
(
c73694478
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
:
GetCode
(),
e
,
tp
)
end
function
c73694478
.
spfilter
(
c
,
code
,
e
,
tp
)
return
c
:
IsSetCard
(
0xcf
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsSetCard
(
0x
10
cf
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c73694478
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c73694478
.
filter
(
chkc
,
e
,
tp
)
end
...
...
@@ -59,7 +59,7 @@ function c73694478.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
function
c73694478
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xcf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
10
cf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c73694478
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c73694478
.
thfilter
(
chkc
)
end
...
...
c7841921.lua
View file @
10ac205d
...
...
@@ -45,7 +45,7 @@ function c7841921.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
function
c7841921
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xcf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
10
cf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c7841921
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c7841921
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c79234734.lua
View file @
10ac205d
...
...
@@ -21,7 +21,7 @@ function c79234734.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c79234734
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xcf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsSetCard
(
0x
10
cf
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c79234734
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79234734
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
c799183.lua
View file @
10ac205d
...
...
@@ -21,7 +21,7 @@ function c799183.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c799183
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0xcf
)
then
return
false
end
if
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x
10
cf
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_MZONE
)
...
...
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