Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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-scripts-888
Commits
06cf9b7b
Commit
06cf9b7b
authored
Feb 03, 2022
by
Chrono-Genex
Committed by
GitHub
Feb 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1807)
parent
2e08dd75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
c80036543.lua
c80036543.lua
+17
-2
No files found.
c80036543.lua
View file @
06cf9b7b
...
@@ -15,12 +15,27 @@ function c80036543.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,12 +15,27 @@ function c80036543.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetLP
(
tp
)
<=
Duel
.
GetLP
(
1
-
tp
)
-
1000
return
Duel
.
GetLP
(
tp
)
<=
Duel
.
GetLP
(
1
-
tp
)
-
1000
end
end
function
c80036543
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80036543
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
end
function
c80036543
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80036543
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
if
e
:
GetLabel
()
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
math.floor
(
math.abs
(
Duel
.
GetLP
(
tp
)
-
Duel
.
GetLP
(
1
-
tp
))
/
2000
))
end
e
:
SetLabel
(
0
)
local
cost
=
1000
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_LPCOST_CHANGE
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
con
=
te
:
GetCondition
()
local
val
=
te
:
GetValue
()
if
(
not
con
or
con
(
te
))
then
cost
=
val
(
te
,
e
,
tp
,
1000
)
end
end
local
lp
=
Duel
.
GetLP
(
tp
)
-
cost
return
Duel
.
IsPlayerCanDraw
(
tp
,
math.floor
(
math.abs
(
lp
-
Duel
.
GetLP
(
1
-
tp
))
/
2000
))
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
math.floor
(
math.abs
(
Duel
.
GetLP
(
tp
)
-
Duel
.
GetLP
(
1
-
tp
))
/
2000
))
end
end
function
c80036543
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80036543
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p1
=
Duel
.
GetLP
(
tp
)
local
p1
=
Duel
.
GetLP
(
tp
)
...
...
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