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
70a20553
Commit
70a20553
authored
Jun 17, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f89d1a02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
script/c101006025.lua
script/c101006025.lua
+4
-4
No files found.
script/c101006025.lua
View file @
70a20553
...
@@ -14,11 +14,10 @@ function c101006025.initial_effect(c)
...
@@ -14,11 +14,10 @@ function c101006025.initial_effect(c)
e1
:
SetOperation
(
c101006025
.
spop
)
e1
:
SetOperation
(
c101006025
.
spop
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
e1
:
SetLabelObject
(
e2
)
--Destroy/Shuffle/Special summon
--Destroy/Shuffle/Special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e
2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101006025
)
e2
:
SetCountLimit
(
1
,
101006025
)
e2
:
SetLabel
(
0
)
e2
:
SetLabel
(
0
)
...
@@ -26,14 +25,15 @@ function c101006025.initial_effect(c)
...
@@ -26,14 +25,15 @@ function c101006025.initial_effect(c)
e2
:
SetTarget
(
c101006025
.
destg
)
e2
:
SetTarget
(
c101006025
.
destg
)
e2
:
SetOperation
(
c101006025
.
desop
)
e2
:
SetOperation
(
c101006025
.
desop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
e1
:
SetLabelObject
(
e2
)
end
end
function
c101006025
.
spcostfilter
(
c
)
function
c101006025
.
spcostfilter
(
c
)
return
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
)
return
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
)
end
end
function
c101006025
.
spcon
(
e
,
c
)
function
c101006025
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
then
return
false
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
then
return
false
end
return
Duel
.
IsExistingMatchingCard
(
c101006025
.
spcostfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c101006025
.
spcostfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
end
function
c101006025
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c101006025
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
...
@@ -103,7 +103,7 @@ function c101006025.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -103,7 +103,7 @@ function c101006025.desop(e,tp,eg,ep,ev,re,r,rp)
if
g3
:
GetCount
()
>
0
then
if
g3
:
GetCount
()
>
0
then
local
ct
=
math.min
(
g3
:
GetCount
(),
2
)
local
ct
=
math.min
(
g3
:
GetCount
(),
2
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
Select
(
tp
,
1
,
ct
,
nil
)
local
sg
=
g
3
:
Select
(
tp
,
1
,
ct
,
nil
)
Duel
.
HintSelection
(
sg
)
Duel
.
HintSelection
(
sg
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
Duel
.
Destroy
(
sg
,
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