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
0663e197
Commit
0663e197
authored
Jul 08, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
98ec2ede
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
script/c101006040.lua
script/c101006040.lua
+4
-3
No files found.
script/c101006040.lua
View file @
0663e197
...
@@ -61,6 +61,7 @@ function c101006040.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,6 +61,7 @@ function c101006040.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetDescription
(
aux
.
Stringid
(
101006040
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
101006040
,
1
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c101006040
.
atktg
)
e1
:
SetTarget
(
c101006040
.
atktg
)
...
@@ -69,14 +70,14 @@ function c101006040.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,14 +70,14 @@ function c101006040.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c101006040
.
atkfilter1
(
c
,
tp
)
function
c101006040
.
atkfilter1
(
c
,
tp
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingTarget
(
c101006040
.
atkfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
t
c
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingTarget
(
c101006040
.
atkfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
)
end
end
function
c101006040
.
atkfilter2
(
c
,
tc
)
function
c101006040
.
atkfilter2
(
c
,
tc
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetAttack
()
~=
tc
:
GetAttack
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetAttack
()
~=
tc
:
GetAttack
()
end
end
function
c101006040
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101006040
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101006040
.
atkfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101006040
.
atkfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101006040
.
atkfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101006040
.
atkfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
...
@@ -101,7 +102,7 @@ function c101006040.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -101,7 +102,7 @@ function c101006040.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101006040
.
valcheck
(
e
,
c
)
function
c101006040
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
if
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
101006040
)
then
if
g
:
IsExists
(
Card
.
Is
Link
Code
,
1
,
nil
,
101006040
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
e
:
GetLabelObject
():
SetLabel
(
1
)
else
else
e
:
GetLabelObject
():
SetLabel
(
0
)
e
:
GetLabelObject
():
SetLabel
(
0
)
...
...
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