Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
448cc14d
Commit
448cc14d
authored
Sep 06, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
7cb2b5f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
expansions/script/c85401860.lua
expansions/script/c85401860.lua
+13
-9
No files found.
expansions/script/c85401860.lua
View file @
448cc14d
...
...
@@ -25,24 +25,28 @@ function c85401860.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c85401860
.
gl
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c85401860
.
gl
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
e
:
SetLabel
(
g
:
GetFirst
():
GetAttack
()
-
Duel
.
GetLP
(
tp
))
local
b
=
Duel
.
GetLP
(
tp
)
e
:
SetLabel
(
g
:
GetFirst
():
GetAttack
())
end
function
c85401860
.
f
(
c
,
e
)
return
c
:
IsDestructable
()
and
c
:
IsFaceup
()
and
c
:
GetDefense
()
<=
e
:
GetLabel
()
function
c85401860
.
f
(
c
)
return
c
:
IsDestructable
()
and
c
:
IsFaceup
()
end
function
c85401860
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c85401860
.
f
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c85401860
.
f
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
0
,
0
)
end
function
c85401860
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
GetMatchingGroup
(
c85401860
.
f
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
e
)
local
g
=
Duel
.
GetMatchingGroup
(
c85401860
.
f
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
local
t
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
s
=
(
8000
-
Duel
.
GetLP
(
tp
))
/
5
Duel
.
Damage
(
1
-
tp
,
s
*
t
,
REASON_EFFECT
)
local
sc
=
g
:
GetFirst
()
while
sc
and
sc
:
GetDefense
()
<=
e
:
GetLabel
()
-
Duel
.
GetLP
(
tp
)
do
Duel
.
Destroy
(
sc
,
REASON_EFFECT
)
local
s
=
(
8000
-
Duel
.
GetLP
(
tp
))
/
5
Duel
.
Damage
(
1
-
tp
,
s
,
REASON_EFFECT
)
sc
=
g
:
GetNext
()
end
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