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
b489f873
Commit
b489f873
authored
Jun 12, 2017
by
dest
Committed by
mercury233
Jun 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Life absorbing machine (#615)
parent
5473afba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
c14318794.lua
c14318794.lua
+26
-5
No files found.
c14318794.lua
View file @
b489f873
...
@@ -14,14 +14,24 @@ function c14318794.initial_effect(c)
...
@@ -14,14 +14,24 @@ function c14318794.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetLabel
(
0
)
e2
:
SetCondition
(
c14318794
.
reccon
)
e2
:
SetCondition
(
c14318794
.
reccon
)
e2
:
SetTarget
(
c14318794
.
rectg
)
e2
:
SetTarget
(
c14318794
.
rectg
)
e2
:
SetOperation
(
c14318794
.
recop
)
e2
:
SetOperation
(
c14318794
.
recop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_TURN_END
)
e3
:
SetOperation
(
c14318794
.
clearg
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
if
not
c14318794
.
global_check
then
if
not
c14318794
.
global_check
then
c14318794
.
global_check
=
true
c14318794
.
global_check
=
true
c14318794
[
0
]
=
{}
c14318794
[
0
]
=
{}
c14318794
[
1
]
=
{}
c14318794
[
1
]
=
{}
c14318794
[
2
]
=
0
c14318794
[
3
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_PAY_LPCOST
)
ge1
:
SetCode
(
EVENT_PAY_LPCOST
)
...
@@ -34,25 +44,36 @@ function c14318794.initial_effect(c)
...
@@ -34,25 +44,36 @@ function c14318794.initial_effect(c)
Duel
.
RegisterEffect
(
ge2
,
0
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
end
end
c14318794
.
tbl
=
{}
c14318794
.
count
=
0
function
c14318794
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14318794
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
Duel
.
GetTurnPlayer
()
then
if
ep
==
Duel
.
GetTurnPlayer
()
then
local
val
=
math.ceil
(
ev
/
2
)
local
val
=
math.ceil
(
ev
/
2
)
table.insert
(
c14318794
[
ep
],
val
)
table.insert
(
c14318794
[
ep
],
val
)
c14318794
[
ep
+
2
]
=
c14318794
[
ep
+
2
]
+
1
end
end
end
end
function
c14318794
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14318794
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c14318794
[
2
]
=
{
table.unpack
(
c14318794
[
Duel
.
GetTurnPlayer
()])}
c14318794
.
tbl
=
{
table.unpack
(
c14318794
[
Duel
.
GetTurnPlayer
()])}
c14318794
[
Duel
.
GetTurnPlayer
()]
=
{}
c14318794
[
Duel
.
GetTurnPlayer
()]
=
{}
c14318794
.
count
=
c14318794
[
Duel
.
GetTurnPlayer
()
+
2
]
c14318794
[
Duel
.
GetTurnPlayer
()
+
2
]
=
0
end
function
c14318794
.
clearg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c14318794
.
tbl
=
{}
c14318794
.
count
=
0
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c14318794
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14318794
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
return
tp
==
Duel
.
GetTurnPlayer
()
end
end
function
c14318794
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14318794
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
c14318794
[
2
][
1
]
end
local
count
=
c14318794
.
count
-
e
:
GetLabel
()
if
chk
==
0
then
return
count
>
0
and
c14318794
.
tbl
[
count
]
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
c14318794
[
2
][
1
])
Duel
.
SetTargetParam
(
c14318794
.
tbl
[
count
])
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
c14318794
[
2
][
1
])
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
c14318794
.
tbl
[
count
])
table.remove
(
c14318794
[
2
],
1
)
e
:
SetLabel
(
e
:
GetLabel
()
+
1
)
end
end
function
c14318794
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14318794
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
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