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
6cce3a94
Commit
6cce3a94
authored
May 10, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bbf78b6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
c56256517.lua
c56256517.lua
+11
-1
No files found.
c56256517.lua
View file @
6cce3a94
...
...
@@ -25,11 +25,18 @@ function c56256517.activate(e,tp,eg,ep,ev,re,r,rp)
g
:
KeepAlive
()
local
c
=
e
:
GetHandler
()
c
:
SetTurnCounter
(
0
)
local
fid
=
c
:
GetFieldID
()
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
RegisterFlagEffect
(
56256517
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
,
fid
)
tc
=
g
:
GetNext
()
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabelObject
(
g
)
e1
:
SetCondition
(
c56256517
.
thcon
)
e1
:
SetOperation
(
c56256517
.
thop
)
...
...
@@ -39,6 +46,9 @@ end
function
c56256517
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c56256517
.
thfilter
(
c
,
fid
)
return
c
:
GetFlagEffectLabel
(
56256517
)
==
fid
end
function
c56256517
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetTurnCounter
()
...
...
@@ -46,7 +56,7 @@ function c56256517.thop(e,tp,eg,ep,ev,re,r,rp)
c
:
SetTurnCounter
(
ct
)
if
ct
==
3
then
local
g
=
e
:
GetLabelObject
()
if
g
:
GetCount
(
)
==
3
then
if
g
:
FilterCount
(
c56256517
.
thfilter
,
nil
,
e
:
GetLabel
()
)
==
3
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
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