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
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-scripts
Commits
48c7dfba
Commit
48c7dfba
authored
Dec 03, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
052ca2bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
c2055403.lua
c2055403.lua
+10
-6
No files found.
c2055403.lua
View file @
48c7dfba
...
@@ -23,12 +23,16 @@ end
...
@@ -23,12 +23,16 @@ end
function
c2055403
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2055403
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c2055403
.
filter
,
nil
,
tp
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
eg
:
Filter
(
c2055403
.
filter
,
nil
,
tp
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
ct
=
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
local
og
=
Duel
.
GetOperatedGroup
()
if
Duel
.
GetLP
(
tp
)
>=
ct
*
1000
then
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
ct
*
1000
)
if
ct
>
0
then
else
Duel
.
BreakEffect
()
Duel
.
SetLP
(
tp
,
0
)
if
Duel
.
GetLP
(
tp
)
>=
ct
*
1000
then
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
ct
*
1000
)
else
Duel
.
SetLP
(
tp
,
0
)
end
end
end
end
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