Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
0b98a849
Commit
0b98a849
authored
Feb 22, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daniaozhuanzhuanzhuan
parent
40f591c2
Pipeline
#2483
failed with stages
in 13 minutes and 24 seconds
Changes
8
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
44 additions
and
14 deletions
+44
-14
expansions/script/c12014000.lua
expansions/script/c12014000.lua
+5
-5
expansions/script/c12014011.lua
expansions/script/c12014011.lua
+3
-0
expansions/script/c12014012.lua
expansions/script/c12014012.lua
+3
-0
expansions/script/c12014013.lua
expansions/script/c12014013.lua
+3
-0
expansions/script/c12014014.lua
expansions/script/c12014014.lua
+3
-0
expansions/script/c12014016.lua
expansions/script/c12014016.lua
+3
-0
expansions/script/c12014020.lua
expansions/script/c12014020.lua
+14
-1
expansions/script/c12037015.lua
expansions/script/c12037015.lua
+10
-8
No files found.
expansions/script/c12014000.lua
View file @
0b98a849
...
...
@@ -47,12 +47,12 @@ function cm.chainfilter(re,tp,cid)
return
false
end
function
cm
.
spfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa
e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPublic
()
return
c
:
IsSetCard
(
0x5fa
9
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPublic
()
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
3
,
nil
)
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_BATTLE_PHASE
)
==
0
and
not
Duel
.
CheckPhaseActivity
()
and
Duel
.
Get
CustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
==
0
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
3
,
nil
)
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_BATTLE_PHASE
)
==
0
and
not
Duel
.
CheckPhaseActivity
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
@@ -81,14 +81,14 @@ function cm.actop(e,tp,eg,ep,ev,re,r,rp)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
end
function
cm
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeckAsCost
()
function
cm
.
costfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
cm
.
costfilter2
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
...
...
expansions/script/c12014011.lua
View file @
0b98a849
...
...
@@ -45,6 +45,9 @@ function cm.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsAbleToHand
()
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
)
end
...
...
expansions/script/c12014012.lua
View file @
0b98a849
...
...
@@ -67,6 +67,9 @@ end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsAbleToHand
()
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tt
=
1
...
...
expansions/script/c12014013.lua
View file @
0b98a849
...
...
@@ -36,6 +36,9 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsAbleToHand
()
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsLevelAbove
(
6
)
and
c
:
IsControler
(
tp
)
end
...
...
expansions/script/c12014014.lua
View file @
0b98a849
...
...
@@ -74,6 +74,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsAbleToHand
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_MZONE
)
...
...
expansions/script/c12014016.lua
View file @
0b98a849
...
...
@@ -35,6 +35,9 @@ function cm.initial_effect(c)
e7
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e7
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsAbleToHand
()
end
function
cm
.
comtfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x5fa9
)
and
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
)
>
0
...
...
expansions/script/c12014020.lua
View file @
0b98a849
...
...
@@ -131,10 +131,23 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetChainLimit
(
cm
.
chainlm
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x5fa9
)
and
c
:
IsAbleToHand
()
end
function
cm
.
spop
(
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
,
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
local
tt
=
2
if
tt
>
0
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
12014002
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
tt
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12014002
,
4
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
tt
,
tt
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
elseif
tt
>
0
then
Duel
.
Draw
(
tp
,
tt
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c12037015.lua
View file @
0b98a849
--战场的巫鸣鸟 迦陵频伽
local
m
=
12037015
local
cm
=
_G
[
"c"
..
m
]
function
c12037015
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
4987999
5
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
1203701
5
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c
12037015
.
spcon
)
e1
:
SetTarget
(
c
12037015
.
sptg
)
e1
:
SetOperation
(
c
12037015
.
spop
)
e1
:
SetCondition
(
c
m
.
spcon
)
e1
:
SetTarget
(
c
m
.
sptg
)
e1
:
SetOperation
(
c
m
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -21,21 +23,21 @@ function c12037015.initial_effect(c)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
function
c
12037015
.
filter
(
c
)
function
c
m
.
filter
(
c
)
return
c
:
IsAttackPos
()
end
function
c
12037015
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
not
eg
or
#
eg
>
1
then
return
false
end
local
mat
=
eg
:
GetFirst
():
GetMaterial
()
return
mat
and
#
mat
>
1
and
mat
:
GetFirst
():
GetLevel
()
==
mat
:
GetNext
():
GetLevel
()
end
function
c
12037015
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c
12037015
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
eg
:
GetFirst
()
if
rc
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
...
...
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