Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
95676242
Commit
95676242
authored
Jan 14, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7e80fa74
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
18 deletions
+22
-18
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c101012025.lua
script/c101012025.lua
+5
-4
script/c101012030.lua
script/c101012030.lua
+4
-1
script/c101012031.lua
script/c101012031.lua
+1
-1
script/c101012053.lua
script/c101012053.lua
+4
-4
script/c101012072.lua
script/c101012072.lua
+2
-1
script/c101012080.lua
script/c101012080.lua
+6
-7
No files found.
expansions/pre-release.cdb
View file @
95676242
No preview for this file type
script/c101012025.lua
View file @
95676242
...
...
@@ -44,18 +44,19 @@ function c101012025.chainfilter(re,tp,cid)
return
not
(
re
:
GetHandler
():
IsRace
(
RACE_THUNDER
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetChainInfo
(
cid
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_HAND
)
end
function
c101012025
.
spfilter
(
c
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsAbleToRemoveAsCost
()
function
c101012025
.
spfilter
(
c
,
tp
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c101012025
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
(
Duel
.
GetCustomActivityCount
(
101012025
,
tp
,
ACTIVITY_CHAIN
)
~=
0
or
Duel
.
GetCustomActivityCount
(
101012025
,
1
-
tp
,
ACTIVITY_CHAIN
)
~=
0
)
and
Duel
.
IsExistingMatchingCard
(
c101012025
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c101012025
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
c
,
tp
)
end
function
c101012025
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101012025
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101012025
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
c
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c101012025
.
etcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101012030.lua
View file @
95676242
...
...
@@ -32,6 +32,9 @@ function c101012030.initial_effect(c)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
function
c101012030
.
rfilter
(
c
,
tp
)
return
c
:
IsLevelAbove
(
1
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c101012030
.
fselect
(
g
,
tp
)
Duel
.
SetSelectedCard
(
g
)
if
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
and
g
:
CheckWithSumGreater
(
Card
.
GetLevel
,
8
)
then
...
...
@@ -40,7 +43,7 @@ function c101012030.fselect(g,tp)
else
return
false
end
end
function
c101012030
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsLevelAbove
,
nil
,
1
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c101012030
.
rfilter
,
nil
,
tp
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
c101012030
.
fselect
,
1
,
g
:
GetCount
(),
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
rg
=
g
:
SelectSubGroup
(
tp
,
c101012030
.
fselect
,
false
,
1
,
g
:
GetCount
(),
tp
)
...
...
script/c101012031.lua
View file @
95676242
...
...
@@ -21,7 +21,7 @@ function c101012031.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
101012131
)
e2
:
SetTarget
(
c101012031
.
sptg2
)
e2
:
SetOperation
(
c101012031
.
spop2
)
...
...
script/c101012053.lua
View file @
95676242
...
...
@@ -48,13 +48,13 @@ end
function
c101012053
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c101012053
.
rfilter
(
c
)
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0xfc
)
and
c
:
IsType
(
TYPE_LINK
)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
function
c101012053
.
rfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xfc
)
and
c
:
IsType
(
TYPE_LINK
)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
function
c101012053
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c101012053
.
rfilter
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c101012053
.
rfilter
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c101012053
.
rfilter
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c101012053
.
rfilter
,
1
,
1
,
nil
,
tp
)
e
:
SetLabel
(
g
:
GetFirst
():
GetLink
())
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
script/c101012072.lua
View file @
95676242
...
...
@@ -17,7 +17,8 @@ function c101012072.filter(c)
end
function
c101012072
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
101012072
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
ct
+
3
)
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
+
3
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
ct
+
3
)
and
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c101012072
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101012080.lua
View file @
95676242
...
...
@@ -39,15 +39,14 @@ function c101012080.activate(e,tp,eg,ep,ev,re,r,rp)
if
res
then
if
Duel
.
SendtoGrave
(
tc2
,
REASON_EFFECT
)
~=
0
and
tc2
:
IsLocation
(
LOCATION_GRAVE
)
and
tc1
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
tc1
)
>
0
then
Duel
.
SpecialSummon
(
tc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
tc1
)
>
0
and
Duel
.
SpecialSummon
(
tc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc1
:
GetOriginalRace
()
==
tc2
:
GetOriginalRace
()
and
tc1
:
GetOriginalAttribute
()
==
tc2
:
GetOriginalAttribute
()
then
Duel
.
BreakEffect
()
local
atk
=
tc2
:
GetTextAttack
()
Duel
.
SetLP
(
1
-
tp
,
Duel
.
GetLP
(
1
-
tp
)
-
atk
)
end
end
end
else
if
Duel
.
SendtoGrave
(
tc1
,
REASON_EFFECT
)
~=
0
and
tc1
:
IsLocation
(
LOCATION_GRAVE
)
and
tc2
:
IsCanBeSpecialSummoned
(
e
,
0
,
1
-
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
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