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
b25fa9b1
Commit
b25fa9b1
authored
Nov 18, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6e540dcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
c55878038.lua
c55878038.lua
+5
-3
No files found.
c55878038.lua
View file @
b25fa9b1
...
@@ -21,6 +21,7 @@ function c55878038.initial_effect(c)
...
@@ -21,6 +21,7 @@ function c55878038.initial_effect(c)
e2
:
SetCondition
(
c55878038
.
descon
)
e2
:
SetCondition
(
c55878038
.
descon
)
e2
:
SetTarget
(
c55878038
.
destg
)
e2
:
SetTarget
(
c55878038
.
destg
)
e2
:
SetOperation
(
c55878038
.
desop
)
e2
:
SetOperation
(
c55878038
.
desop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c55878038
.
spcostfilter
(
c
)
function
c55878038
.
spcostfilter
(
c
)
...
@@ -42,7 +43,7 @@ function c55878038.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -42,7 +43,7 @@ function c55878038.spop(e,tp,eg,ep,ev,re,r,rp,c)
if
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_DARK
)
then
if
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_DARK
)
then
label
=
label
+
2
label
=
label
+
2
end
end
c
:
RegisterFlagEffect
(
55878038
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
,
0
,
1
,
label
)
e
:
SetLabel
(
label
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c55878038
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55878038
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -52,7 +53,7 @@ function c55878038.spfilter(c,e,tp)
...
@@ -52,7 +53,7 @@ function c55878038.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c55878038
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55878038
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
label
=
e
:
Get
Handler
():
GetFlagEffectLabel
(
55878038
)
local
label
=
e
:
Get
LabelObject
():
GetLabel
(
)
if
chk
==
0
then
if
chk
==
0
then
if
label
==
1
then
if
label
==
1
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -63,6 +64,7 @@ function c55878038.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,6 +64,7 @@ function c55878038.destg(e,tp,eg,ep,ev,re,r,rp,chk)
return
true
return
true
end
end
end
end
e
:
SetLabel
(
label
)
if
label
==
1
then
if
label
==
1
then
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
55878038
,
1
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
55878038
,
1
))
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
@@ -86,7 +88,7 @@ function c55878038.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,7 +88,7 @@ function c55878038.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
label
=
c
:
GetFlagEffectLabel
(
55878038
)
local
label
=
e
:
GetLabel
(
)
if
label
==
1
then
if
label
==
1
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
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