Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-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
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
苍蓝
rd-ygopro
Commits
177e0403
Commit
177e0403
authored
Aug 09, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2167fc3a
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
13 deletions
+26
-13
script/c12247206.lua
script/c12247206.lua
+4
-2
script/c14983497.lua
script/c14983497.lua
+1
-0
script/c18060565.lua
script/c18060565.lua
+3
-3
script/c28325165.lua
script/c28325165.lua
+1
-0
script/c34460239.lua
script/c34460239.lua
+1
-1
script/c38844957.lua
script/c38844957.lua
+1
-0
script/c63120904.lua
script/c63120904.lua
+6
-3
script/c6511113.lua
script/c6511113.lua
+1
-0
script/c8339504.lua
script/c8339504.lua
+8
-4
No files found.
script/c12247206.lua
View file @
177e0403
...
...
@@ -21,10 +21,12 @@ function c12247206.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
tc
=
eg
:
GetFirst
()
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c12247206
.
nfilter
,
tp
,
0x13
,
0
,
nil
,
tc
)
return
g
:
GetCount
()
==
g
:
FilterCount
(
Card
.
IsCanBeSpecialSummoned
,
nil
,
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
g
:
GetCount
()
>
0
and
g
:
GetCount
()
==
g
:
FilterCount
(
Card
.
IsCanBeSpecialSummoned
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
tc
:
CreateEffectRelation
(
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
PLAYER_ALL
,
0x13
)
local
g
=
Duel
.
GetMatchingGroup
(
c12247206
.
filter
,
tp
,
0x13
,
0
,
nil
,
tc
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c12247206
.
filter
(
c
,
tc
,
e
,
tp
)
return
c12247206
.
nfilter
(
c
,
tc
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c14983497.lua
View file @
177e0403
...
...
@@ -5,6 +5,7 @@ function c14983497.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
14983497
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCondition
(
c14983497
.
spcon
)
e1
:
SetTarget
(
c14983497
.
sptg
)
...
...
script/c18060565.lua
View file @
177e0403
...
...
@@ -4,7 +4,7 @@ function c18060565.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
18060565
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c18060565
.
eqtg
)
...
...
@@ -22,11 +22,11 @@ function c18060565.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c18060565
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c18060565
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c18060565
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c18060565
.
eqfilter
(
c
)
return
c
:
IsSetCard
(
0x29
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
GetLevel
()
<=
3
return
c
:
IsSetCard
(
0x29
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsLevelBelow
(
3
)
end
function
c18060565
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
...
...
script/c28325165.lua
View file @
177e0403
...
...
@@ -6,6 +6,7 @@ function c28325165.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
c28325165
.
condition
)
e1
:
SetTarget
(
c28325165
.
target
)
e1
:
SetOperation
(
c28325165
.
activate
)
...
...
script/c34460239.lua
View file @
177e0403
...
...
@@ -32,7 +32,7 @@ function c34460239.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
then
Duel
.
BreakEffect
()
local
g
=
Duel
.
Duel
.
SelectMatchingCard
(
tp
,
c34460239
.
nfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c34460239
.
nfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
)
local
hc
=
g
:
GetFirst
()
if
hc
then
Duel
.
SendtoHand
(
hc
,
nil
,
REASON_EFFECT
)
...
...
script/c38844957.lua
View file @
177e0403
...
...
@@ -34,6 +34,7 @@ function c38844957.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c38844957
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38844957
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
te
=
g
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
false
)
...
...
script/c63120904.lua
View file @
177e0403
...
...
@@ -19,11 +19,13 @@ function c63120904.dfilter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
end
function
c63120904
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
(
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
1
,
nil
,
90337190
)
and
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
))
or
(
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
1
,
nil
,
95614612
)
and
Duel
.
IsExistingTarget
(
c63120904
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
))
end
if
chkc
then
if
e
:
GetLabel
()
==
90337190
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDestructable
()
else
return
chkc
:
IsOnField
()
and
c63120904
.
dfilter
(
chkc
)
end
end
local
b1
=
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
1
,
nil
,
90337190
)
and
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
local
b2
=
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsCode
,
1
,
nil
,
95614612
)
and
Duel
.
IsExistingTarget
(
c63120904
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
code
=
0
if
b1
and
b2
then
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c63120904
.
rfilter
,
1
,
1
,
nil
)
...
...
@@ -38,6 +40,7 @@ function c63120904.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
code
=
95614612
Duel
.
Release
(
rg
,
REASON_COST
)
end
e
:
SetLabel
(
code
)
if
code
==
90337190
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
script/c6511113.lua
View file @
177e0403
...
...
@@ -81,6 +81,7 @@ function c6511113.target(e,tp,eg,ep,ev,re,r,rp,chk)
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c6511113
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c6511113
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
te
,
ceg
,
cep
,
cev
,
cre
,
cr
,
crp
=
g
:
GetFirst
():
CheckActivateEffect
(
false
,
true
,
true
)
...
...
script/c8339504.lua
View file @
177e0403
...
...
@@ -18,9 +18,13 @@ function c8339504.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c8339504
.
cfilter
(
c
,
e
,
tp
)
local
rk
=
c
:
GetRank
()
return
rk
>
0
and
Duel
.
IsExistingMatchingCard
(
c8339504
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
rk
,
c
:
GetRace
(),
c
:
GetAttribute
(),
c
:
GetCode
()
,
e
,
tp
)
return
rk
>
0
and
Duel
.
IsExistingMatchingCard
(
c8339504
.
spfilter
1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
,
e
,
tp
)
end
function
c8339504
.
spfilter
(
c
,
tc
,
e
,
tp
)
function
c8339504
.
spfilter1
(
c
,
tc
,
e
,
tp
)
return
c
:
GetRank
()
==
tc
:
GetRank
()
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
IsAttribute
(
tc
:
GetAttribute
())
and
not
c
:
IsCode
(
tc
:
GetCode
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c8339504
.
spfilter2
(
c
,
tc
,
e
,
tp
)
return
c
:
GetRank
()
==
tc
:
GetPreviousRankOnField
()
and
c
:
IsRace
(
tc
:
GetPreviousRaceOnField
())
and
c
:
IsAttribute
(
tc
:
GetPreviousAttributeOnField
())
and
not
c
:
IsCode
(
tc
:
GetPreviousCodeOnField
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
...
...
@@ -42,7 +46,7 @@ function c8339504.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c8339504
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c8339504
.
spfilter
2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
,
e
,
tp
)
local
sc
=
g
:
GetFirst
()
if
sc
then
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
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