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
4e890eba
Commit
4e890eba
authored
Apr 19, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
84330271
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100422005.lua
script/c100422005.lua
+13
-12
script/c101009058.lua
script/c101009058.lua
+1
-1
No files found.
expansions/pre-release.cdb
View file @
4e890eba
No preview for this file type
script/c100422005.lua
View file @
4e890eba
...
...
@@ -60,24 +60,25 @@ function c100422005.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c100422005
.
plfilter
(
c
)
return
c
:
IsCode
(
31893528
,
67287533
,
94772232
,
30170981
)
function
c100422005
.
plfilter
(
c
,
tp
,
mc
)
if
not
c
:
IsCode
(
31893528
,
67287533
,
94772232
,
30170981
)
then
return
false
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
16625614
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
c
:
GetCode
(),
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
tp
,
181
)
then
return
true
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
mc
:
IsLocation
(
LOCATION_SZONE
)
then
ft
=
ft
+
1
end
return
ft
>
0
and
not
c
:
IsForbidden
()
end
function
c100422005
.
pltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100422005
.
plfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
16625614
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
0
,
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
tp
,
181
))
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100422005
.
plfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
,
tp
,
e
:
GetHandler
())
end
end
function
c100422005
.
plop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
res
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
16625614
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
0
,
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
tp
,
181
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
and
not
res
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
94212438
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100422005
.
plfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
100422005
,
2
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100422005
.
plfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
,
c
)
local
tc
=
g
:
GetFirst
()
if
tc
and
res
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16625614
,
0
))
then
if
tc
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
16625614
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
tc
:
GetCode
(),
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
tp
,
181
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16625614
,
0
))
then
tc
:
AddMonsterAttribute
(
TYPE_NORMAL
,
ATTRIBUTE_DARK
,
RACE_FIEND
,
1
,
0
,
0
)
Duel
.
SpecialSummonStep
(
tc
,
181
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
--immune
...
...
script/c101009058.lua
View file @
4e890eba
...
...
@@ -35,7 +35,7 @@ function c101009058.efilter(e,re)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c101009058
.
drfilter1
(
c
)
return
not
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsFaceup
()
return
(
not
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsFaceup
())
or
c
:
IsFacedown
()
end
function
c101009058
.
drfilter2
(
c
,
tp
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
GetSummonPlayer
()
==
1
-
tp
and
c
:
IsFaceup
()
...
...
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