Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
ac1cdd3a
Commit
ac1cdd3a
authored
Jan 10, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c0ba3783
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
68 additions
and
28 deletions
+68
-28
script/c10560119.lua
script/c10560119.lua
+2
-1
script/c18605135.lua
script/c18605135.lua
+7
-4
script/c22796548.lua
script/c22796548.lua
+1
-1
script/c23649496.lua
script/c23649496.lua
+1
-0
script/c25573054.lua
script/c25573054.lua
+52
-17
script/c32559361.lua
script/c32559361.lua
+1
-1
script/c54149433.lua
script/c54149433.lua
+1
-1
script/c72403299.lua
script/c72403299.lua
+1
-1
script/c94933468.lua
script/c94933468.lua
+1
-1
script/c96594609.lua
script/c96594609.lua
+1
-1
No files found.
script/c10560119.lua
View file @
ac1cdd3a
...
...
@@ -27,7 +27,8 @@ function c10560119.sdcon(e)
return
Duel
.
IsExistingMatchingCard
(
c10560119
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c10560119
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
c10560119
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
return
g
:
GetCount
()
>
0
and
not
g
:
IsExists
(
c10560119
.
cfilter
,
1
,
nil
)
end
function
c10560119
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
10560119
)
==
0
end
...
...
script/c18605135.lua
View file @
ac1cdd3a
...
...
@@ -27,14 +27,17 @@ end
function
c18605135
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
22702055
)
end
function
c18605135
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c18605135
.
check
(
)
return
Duel
.
IsExistingMatchingCard
(
c18605135
.
filter
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
or
Duel
.
GetEnvironment
()
==
22702055
end
function
c18605135
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c18605135
.
check
()
end
function
c18605135
.
abdcon
(
e
)
return
Duel
.
GetAttackTarget
()
==
nil
or
Duel
.
GetAttackTarget
():
IsAttackPos
()
or
Duel
.
GetAttacker
():
GetAttack
()
>
Duel
.
GetAttackTarget
():
GetDefence
()
local
at
=
Duel
.
GetAttackTarget
()
return
c18605135
.
check
()
and
(
at
==
nil
or
at
:
IsAttackPos
()
or
Duel
.
GetAttacker
():
GetAttack
()
>
at
:
GetDefence
())
end
function
c18605135
.
sdcon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c18605135
.
filter
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
GetEnvironment
()
~=
22702055
return
not
c18605135
.
check
()
end
script/c22796548.lua
View file @
ac1cdd3a
...
...
@@ -21,7 +21,7 @@ function c22796548.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
500
)
end
function
c22796548
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
e
:
SetLabel
(
ac
)
...
...
script/c23649496.lua
View file @
ac1cdd3a
...
...
@@ -9,6 +9,7 @@ function c23649496.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
0x1c0
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCost
(
c23649496
.
cost
)
e1
:
SetTarget
(
c23649496
.
target
)
...
...
script/c25573054.lua
View file @
ac1cdd3a
...
...
@@ -11,34 +11,69 @@ function c25573054.initial_effect(c)
e1
:
SetOperation
(
c25573054
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c25573054
.
cfilter1
(
c
)
function
c25573054
.
tgfilter
(
c
)
return
c
:
IsCode
(
57116033
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c25573054
.
cfilter2
(
c
)
return
not
c
:
IsCode
(
98585345
)
and
c
:
IsAbleToGraveAsCost
(
)
function
c25573054
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
98585345
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c25573054
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c25573054
.
cfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c25573054
.
cfilter2
,
tp
,
LOCATION_HAND
,
0
,
2
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c25573054
.
cfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c25573054
.
cfilter2
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
function
c25573054
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
98585345
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
local
sg
=
Duel
.
GetMatchingGroup
(
c25573054
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
hg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
if
sg
:
GetCount
()
==
0
then
return
false
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<-
1
then
return
false
end
if
ft
==
0
then
if
not
Duel
.
IsExistingMatchingCard
(
c25573054
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
return
false
end
else
if
not
Duel
.
IsExistingMatchingCard
(
c25573054
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
false
end
end
if
sg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
return
hg
:
GetCount
()
>
1
else
return
hg
:
GetCount
()
>
2
end
end
local
cg
=
nil
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c25573054
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c25573054
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
end
local
ct
=
sg
:
GetCount
()
if
ct
>
2
or
sg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
hg
:
Select
(
tp
,
2
,
2
,
nil
)
cg
:
Merge
(
g
)
elseif
ct
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
hg
:
Select
(
tp
,
2
,
2
,
sg
:
GetFirst
())
cg
:
Merge
(
g
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
hg
:
Select
(
tp
,
1
,
1
,
nil
)
if
sg
:
IsContains
(
g1
:
GetFirst
())
then
hg
:
Sub
(
sg
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
hg
:
Select
(
tp
,
1
,
1
,
g1
:
GetFirst
())
cg
:
Merge
(
g1
)
cg
:
Merge
(
g2
)
end
Duel
.
SendtoGrave
(
cg
,
REASON_COST
)
end
function
c25573054
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c25573054
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_DECK
+
LOCATION_HAND
)
end
function
c25573054
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25573054
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25573054
.
sp
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
...
...
script/c32559361.lua
View file @
ac1cdd3a
...
...
@@ -39,7 +39,7 @@ end
function
c32559361
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetBattleTarget
()
if
chk
==
0
then
return
c
:
IsType
(
TYPE_XYZ
)
and
not
tc
:
IsType
(
TYPE_TOKEN
)
and
tc
:
IsAbleToChangeControler
()
end
if
chk
==
0
then
return
tc
and
c
:
IsType
(
TYPE_XYZ
)
and
not
tc
:
IsType
(
TYPE_TOKEN
)
and
tc
:
IsAbleToChangeControler
()
end
end
function
c32559361
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c54149433.lua
View file @
ac1cdd3a
...
...
@@ -52,7 +52,7 @@ function c54149433.spfilter(c,e,tp)
end
function
c54149433
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c54149433
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c54149433
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c72403299.lua
View file @
ac1cdd3a
...
...
@@ -12,7 +12,7 @@ function c72403299.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c72403299
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
e
:
SetLabel
(
ac
)
...
...
script/c94933468.lua
View file @
ac1cdd3a
...
...
@@ -69,7 +69,7 @@ function c94933468.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
function
c94933468
.
deckcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
and
e
:
GetHandler
():
GetCardTarget
()
~=
nil
return
tp
~=
Duel
.
GetTurnPlayer
()
and
e
:
GetHandler
():
Get
First
CardTarget
()
~=
nil
end
function
c94933468
.
decktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c96594609.lua
View file @
ac1cdd3a
...
...
@@ -50,7 +50,7 @@ function c96594609.tgfilter(c)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToGrave
()
end
function
c96594609
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96594609
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c96594609
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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