Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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-520DIY
ygopro
Commits
fd490cf5
Commit
fd490cf5
authored
Sep 08, 2013
by
sidschingis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent infinite loop
parent
b0ebd7f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
script/c30834988.lua
script/c30834988.lua
+14
-2
No files found.
script/c30834988.lua
View file @
fd490cf5
...
@@ -32,18 +32,30 @@ function c30834988.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,18 +32,30 @@ function c30834988.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
function
c30834988
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30834988
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
eg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
eg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_MUST_ATTACK
)
e1
:
SetCode
(
EFFECT_MUST_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
if
Duel
.
GetFlagEffect
(
tp
,
30834988
)
==
0
then
Duel
.
RegisterFlagEffect
(
tp
,
30834988
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
SetLabel
(
0
)
else
local
count
=
e
:
GetLabel
()
e
:
SetLabel
(
count
+
1
)
if
count
>
49
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
end
end
function
c30834988
.
epfilter
(
c
)
function
c30834988
.
epfilter
(
c
)
return
c
:
IsHasEffect
(
EFFECT_MUST_ATTACK
)
and
c
:
IsAttackable
()
return
c
:
IsHasEffect
(
EFFECT_MUST_ATTACK
)
and
c
:
IsAttackable
()
...
...
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