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
7ccab8f1
Commit
7ccab8f1
authored
Nov 17, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
70d94315
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
c15661378.lua
c15661378.lua
+3
-1
c87871125.lua
c87871125.lua
+17
-2
No files found.
c15661378.lua
View file @
7ccab8f1
...
...
@@ -18,6 +18,7 @@ function c15661378.initial_effect(c)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
c15661378
.
spcon
)
e2
:
SetOperation
(
c15661378
.
spop
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
--remove
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -89,7 +90,8 @@ function c15661378.valcheck(e,c)
end
end
function
c15661378
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabel
()
==
1
local
c
=
e
:
GetHandler
()
return
(
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
or
c
:
IsSummonType
(
SUMMON_TYPE_FUSION
))
and
e
:
GetLabel
()
==
1
end
function
c15661378
.
remtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
...
...
c87871125.lua
View file @
7ccab8f1
...
...
@@ -34,6 +34,13 @@ function c87871125.initial_effect(c)
e4
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e4
:
SetValue
(
c87871125
.
valcheck
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCondition
(
c87871125
.
regcon
)
e5
:
SetOperation
(
c87871125
.
regop
)
c
:
RegisterEffect
(
e5
)
e4
:
SetLabelObject
(
e5
)
end
function
c87871125
.
matfilter
(
c
)
return
c
:
IsLinkType
(
TYPE_EFFECT
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_FIRE
)
...
...
@@ -81,7 +88,7 @@ function c87871125.sumlimit(e,c)
return
c
:
IsCode
(
e
:
GetLabel
())
end
function
c87871125
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
e
:
GetHandler
():
GetFlagEffect
(
87871125
)
~=
0
return
e
:
GetHandler
():
GetFlagEffect
(
87871125
)
~=
0
end
function
c87871125
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x119
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
@@ -101,6 +108,14 @@ end
function
c87871125
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
if
g
:
IsExists
(
Card
.
IsLinkCode
,
1
,
nil
,
87871125
)
then
c
:
RegisterFlagEffect
(
87871125
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
-
RESET_LEAVE
-
RESET_TEMP_REMOVE
,
0
,
1
)
e
:
GetLabelObject
():
SetLabel
(
1
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c87871125
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
e
:
GetLabel
()
==
1
end
function
c87871125
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
87871125
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
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