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
ecd20f7e
Commit
ecd20f7e
authored
Aug 11, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4970b9fc
Pipeline
#520
passed with stages
in 42 minutes and 3 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
30 deletions
+33
-30
expansions/script/c112014.lua
expansions/script/c112014.lua
+4
-5
expansions/script/c112043.lua
expansions/script/c112043.lua
+3
-3
expansions/script/c12044013.lua
expansions/script/c12044013.lua
+5
-1
expansions/script/c12048000.lua
expansions/script/c12048000.lua
+2
-2
expansions/script/c12053001.lua
expansions/script/c12053001.lua
+3
-3
expansions/script/c12053002.lua
expansions/script/c12053002.lua
+2
-2
expansions/script/c12053003.lua
expansions/script/c12053003.lua
+1
-1
expansions/script/c12053004.lua
expansions/script/c12053004.lua
+12
-12
expansions/script/c12053010.lua
expansions/script/c12053010.lua
+1
-1
No files found.
expansions/script/c112014.lua
View file @
ecd20f7e
...
...
@@ -67,13 +67,12 @@ function c112014.thfilter4(c,e,tp)
end
function
c112014
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c112014
.
thfilter3
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c112014
.
thfilter4
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c112014
.
thfilter3
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
c112014
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c112014
.
thfilter3
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c112014
.
twocon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c112043.lua
View file @
ecd20f7e
...
...
@@ -31,7 +31,7 @@ function c112043.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
112043
)
e2
:
SetCountLimit
(
1
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetTarget
(
c112043
.
distg
)
e2
:
SetOperation
(
c112043
.
disop
)
...
...
@@ -60,7 +60,7 @@ function c112043.disfilter(c)
return
c
:
IsAbleToDeck
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c112043
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
a00
9
)
and
c
:
IsAbleToDeck
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x
ca
9
)
and
c
:
IsAbleToDeck
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c112043
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
@@ -79,7 +79,7 @@ function c112043.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
g1
,
nil
,
2
,
REASON_EFFECT
)
end
function
c112043
.
cfil
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_HAND
)
and
c
:
IsSetCard
(
0x
a00
9
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_HAND
)
and
c
:
IsSetCard
(
0x
ca
9
)
end
function
c112043
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c112043
.
cfil
,
1
,
nil
)
end
...
...
expansions/script/c12044013.lua
View file @
ecd20f7e
...
...
@@ -77,8 +77,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetOperation
(
cm
.
spop1
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xfb5
)
end
function
cm
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsAbleToDeck
()
and
rp
==
1
-
tp
return
e
:
GetHandler
():
IsAbleToDeck
()
and
rp
==
1
-
tp
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0xfb5
)
end
function
cm
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -92,6 +95,7 @@ function cm.spcon(e,c)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
g
,
tt
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
):
GetMaxGroup
(
Card
.
GetAttack
)
if
g
==
nil
then
return
false
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsFaceup
()
and
g
:
FilterCount
(
Card
.
IsReleasable
,
nil
)
>
0
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c12048000.lua
View file @
ecd20f7e
...
...
@@ -10,11 +10,11 @@ end
function
HakaShiro
.
SPSummoncon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
cc
=
Duel
.
GetFlagEffect
(
tp
,
12048004
)
local
cc
=
Duel
.
GetFlagEffect
(
tp
,
12048004
)
*
2
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeckAsCost
,
tp
,
LOCATION_GRAVE
,
0
,
5
-
cc
,
c
)
end
function
HakaShiro
.
SPSummonop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
cc
=
Duel
.
GetFlagEffect
(
tp
,
12048004
)
local
cc
=
Duel
.
GetFlagEffect
(
tp
,
12048004
)
*
2
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeckAsCost
,
tp
,
LOCATION_GRAVE
,
0
,
5
-
cc
,
5
-
cc
,
c
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_COST
)
...
...
expansions/script/c12053001.lua
View file @
ecd20f7e
...
...
@@ -42,7 +42,7 @@ function cm.sr_srqn(c,code,rc)
e2
:
SetOperation
(
cm
.
spop
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e3
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e3
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e3
:
SetTarget
(
cm
.
eftg
)
...
...
@@ -54,7 +54,7 @@ function cm.sr_srqn(c,code,rc)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetValue
(
1
)
--
e1:SetValue(1)
e1
:
SetTarget
(
cm
.
atlimit
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
...
...
@@ -65,5 +65,5 @@ function cm.eftg(e,c)
return
c
:
IsRace
(
RACE_FAIRY
)
end
function
cm
.
atlimit
(
e
,
c
)
return
not
c
:
IsRace
(
RACE_FAIRY
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsRace
(
RACE_FAIRY
)
end
\ No newline at end of file
expansions/script/c12053002.lua
View file @
ecd20f7e
...
...
@@ -66,7 +66,7 @@ function cm.sr_srqn(c,code,rc)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_
REMOVED
)
e2
:
SetValue
(
LOCATION_
DECKBOT
)
rc
:
RegisterEffect
(
e2
)
rc
:
RegisterFlagEffect
(
code
,
RESET_EVENT
+
0x1fe0000
-
RESET_TOFIELD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
code
,
2
))
end
...
...
@@ -74,5 +74,5 @@ function cm.rmtarget(e,c)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsRace
(
RACE_FAIRY
)
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
29
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandler
():
GetControler
()
,
LOCATION_DECK
,
0
)
>
29
end
\ No newline at end of file
expansions/script/c12053003.lua
View file @
ecd20f7e
...
...
@@ -53,7 +53,7 @@ function cm.sr_srqn(c,code,rc)
rc
:
RegisterFlagEffect
(
code
,
RESET_EVENT
+
0x1fe0000
-
RESET_TOFIELD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
code
,
2
))
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
1
,
0
,
2
,
nil
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
==
1
end
function
cm
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
...
...
expansions/script/c12053004.lua
View file @
ecd20f7e
...
...
@@ -22,10 +22,10 @@ function cm.tgfilter(c)
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
c
.
tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chkc
then
return
c
m
.
tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c
m
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_
MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
1
,
0
,
nil
)
end
...
...
@@ -38,19 +38,19 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
sr_srqn
(
c
,
code
,
rc
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e
5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
5
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e
5
:
SetRange
(
LOCATION_MZONE
)
e
5
:
SetTargetRange
(
1
,
0
)
e
5
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
rc
:
RegisterEffect
(
e
5
,
true
)
--immune
local
e1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
)
e
1
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e
1
:
SetTarget
(
aux
.
TRUE
)
rc
:
RegisterEffect
(
e
1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
1000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
...
...
expansions/script/c12053010.lua
View file @
ecd20f7e
...
...
@@ -86,5 +86,5 @@ function cm.sr_srqn(c,code,rc)
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
c
:
GetFlagEffect
(
12053000
)
>
0
and
c
:
GetFlagEffect
(
12053001
)
>
0
and
c
:
GetFlagEffect
(
12053002
)
>
0
and
c
:
GetFlagEffect
(
12053003
)
>
0
and
c
:
GetFlagEffect
(
12053004
)
>
0
and
c
:
GetFlagEffect
(
12053005
)
>
0
and
c
:
GetFlagEffect
(
12053006
)
>
0
and
c
:
GetFlagEffect
(
12053007
)
>
0
and
c
:
GetFlagEffect
(
12053008
)
>
0
and
c
:
GetFlagEffect
(
12053009
)
>
0
and
c
:
GetFlagEffect
(
12053010
)
>
0
)
return
(
c
:
GetFlagEffect
(
12053000
)
+
c
:
GetFlagEffect
(
12053001
)
+
c
:
GetFlagEffect
(
12053002
)
+
c
:
GetFlagEffect
(
12053003
)
+
c
:
GetFlagEffect
(
12053004
)
+
c
:
GetFlagEffect
(
12053005
)
+
c
:
GetFlagEffect
(
12053006
)
+
c
:
GetFlagEffect
(
12053007
)
+
c
:
GetFlagEffect
(
12053008
)
+
c
:
GetFlagEffect
(
12053009
)
+
c
:
GetFlagEffect
(
12053010
))
>=
7
end
\ No newline at end of file
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