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
52ff8d50
Commit
52ff8d50
authored
Mar 04, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
47fdf4d4
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
104 additions
and
5 deletions
+104
-5
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
expansions/pre-update.cdb
expansions/pre-update.cdb
+0
-0
script/c100308002.lua
script/c100308002.lua
+0
-1
script/c100308003.lua
script/c100308003.lua
+0
-1
script/c100308004.lua
script/c100308004.lua
+0
-1
script/c100412019.lua
script/c100412019.lua
+2
-0
script/c100412022.lua
script/c100412022.lua
+1
-1
script/c100412023.lua
script/c100412023.lua
+3
-0
script/c100412039.lua
script/c100412039.lua
+1
-1
script/c40732515.lua
script/c40732515.lua
+97
-0
No files found.
expansions/pre-release.cdb
View file @
52ff8d50
No preview for this file type
expansions/pre-update.cdb
View file @
52ff8d50
No preview for this file type
script/c100308002.lua
View file @
52ff8d50
...
...
@@ -26,7 +26,6 @@ function c100308002.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCost
(
c100308002
.
spcost
)
e3
:
SetTarget
(
c100308002
.
sptg
)
e3
:
SetOperation
(
c100308002
.
spop
)
...
...
script/c100308003.lua
View file @
52ff8d50
...
...
@@ -26,7 +26,6 @@ function c100308003.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCost
(
c100308003
.
spcost
)
e3
:
SetTarget
(
c100308003
.
sptg
)
e3
:
SetOperation
(
c100308003
.
spop
)
...
...
script/c100308004.lua
View file @
52ff8d50
...
...
@@ -26,7 +26,6 @@ function c100308004.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCost
(
c100308004
.
spcost
)
e3
:
SetTarget
(
c100308004
.
sptg
)
e3
:
SetOperation
(
c100308004
.
spop
)
...
...
script/c100412019.lua
View file @
52ff8d50
...
...
@@ -49,6 +49,8 @@ function c100412019.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c100412019
.
check
,
false
,
1
,
#
g
)
if
not
sg
then
return
end
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ShuffleHand
(
tp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c100412022.lua
View file @
52ff8d50
...
...
@@ -36,7 +36,7 @@ function c100412022.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c100412022
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c100412022
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c100412022
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c100412023.lua
View file @
52ff8d50
...
...
@@ -45,6 +45,9 @@ function c100412023.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
function
c100412023
.
rccfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x228
)
end
function
c100412023
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
IsExistingMatchingCard
(
c100412023
.
rccfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
script/c100412039.lua
View file @
52ff8d50
...
...
@@ -26,7 +26,7 @@ end
function
c100412039
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingMatchingCard
(
c100412039
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
then
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e
:
SetProperty
(
EFFECT_FLAG_CANNOT_
INACTIVATE
+
EFFECT_FLAG_CANNOT_
DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
else
e
:
SetProperty
(
0
)
end
...
...
script/c40732515.lua
0 → 100644
View file @
52ff8d50
--神聖魔導王エンディミオン
function
c40732515
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
c40732515
.
spcon
)
e1
:
SetOperation
(
c40732515
.
spop
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
40732515
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c40732515
.
condition
)
e2
:
SetTarget
(
c40732515
.
target
)
e2
:
SetOperation
(
c40732515
.
operation
)
c
:
RegisterEffect
(
e2
)
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
40732515
,
1
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCost
(
c40732515
.
descost
)
e3
:
SetTarget
(
c40732515
.
destg
)
e3
:
SetOperation
(
c40732515
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c40732515
.
spcfilter
(
c
,
tp
)
return
c
:
IsCode
(
39910367
)
and
c
:
IsCanRemoveCounter
(
tp
,
0x1
,
6
,
REASON_COST
)
end
function
c40732515
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
function
c40732515
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c40732515
.
spcfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
tp
)
local
tc
=
nil
if
#
g
==
1
then
tc
=
g
:
GetFirst
()
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
40732515
,
2
))
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
tc
:
RemoveCounter
(
tp
,
0x1
,
6
,
REASON_RULE
)
end
function
c40732515
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
end
function
c40732515
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
end
function
c40732515
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c40732515
.
filter
(
chkc
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c40732515
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c40732515
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
tp
)
end
end
function
c40732515
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsDiscardable
()
end
function
c40732515
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c40732515
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
c40732515
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c40732515
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c40732515
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
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