Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
b7a62c6f
Commit
b7a62c6f
authored
Mar 12, 2018
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
4d73203d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
13 deletions
+26
-13
c54813225.lua
c54813225.lua
+26
-13
No files found.
c54813225.lua
View file @
b7a62c6f
...
@@ -6,25 +6,38 @@ function c54813225.initial_effect(c)
...
@@ -6,25 +6,38 @@ function c54813225.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
54813225
)
e1
:
SetCost
(
c54813225
.
spcost
)
e1
:
SetCost
(
c54813225
.
spcost
)
e1
:
SetTarget
(
c54813225
.
sptg
)
e1
:
SetTarget
(
c54813225
.
sptg
)
e1
:
SetOperation
(
c54813225
.
spop
)
e1
:
SetOperation
(
c54813225
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c54813225
.
relrec
(
c
,
tp
,
sg
,
mg
)
sg
:
AddCard
(
c
)
local
res
=
c54813225
.
relgoal
(
tp
,
sg
)
or
mg
:
IsExists
(
c54813225
.
relrec
,
1
,
sg
,
tp
,
sg
,
mg
)
sg
:
RemoveCard
(
c
)
return
res
end
function
c54813225
.
relgoal
(
tp
,
sg
)
Duel
.
SetSelectedCard
(
sg
)
if
sg
:
CheckWithSumGreater
(
Card
.
GetLevel
,
3
)
and
Duel
.
GetMZoneCount
(
tp
,
sg
)
>
0
then
Duel
.
SetSelectedCard
(
sg
)
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
0
,
nil
)
else
return
false
end
end
function
c54813225
.
relfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
function
c54813225
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54813225
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_TOKEN
)
local
ct
=-
ft
+
1
local
sg
=
Group
.
CreateGroup
()
if
ct
<=
0
then
ct
=
1
end
if
chk
==
0
then
return
mg
:
IsExists
(
c54813225
.
relrec
,
1
,
nil
,
tp
,
sg
,
mg
)
end
if
chk
==
0
then
repeat
if
Duel
.
GetFlagEffect
(
tp
,
54813225
)
~=
0
then
return
false
end
local
cg
=
mg
:
Filter
(
c54813225
.
relrec
,
sg
,
tp
,
sg
,
mg
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_TOKEN
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c54813225
.
relfilter
,
1
,
1
,
nil
,
cg
)
return
rg
:
CheckWithSumGreater
(
Card
.
GetLevel
,
3
,
ct
,
99
)
sg
:
Merge
(
g
)
end
until
c54813225
.
relgoal
(
tp
,
sg
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_TOKEN
)
Duel
.
Release
(
sg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
rm
=
rg
:
SelectWithSumGreater
(
tp
,
Card
.
GetLevel
,
3
,
ct
,
99
)
Duel
.
Release
(
rm
,
REASON_COST
)
Duel
.
RegisterFlagEffect
(
tp
,
54813225
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c54813225
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54813225
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
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