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
479b9dee
Commit
479b9dee
authored
Feb 25, 2014
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #701 from woodee/patch-44
fix
parents
45ec8c6b
3b31324f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
script/c65384188.lua
script/c65384188.lua
+14
-7
No files found.
script/c65384188.lua
View file @
479b9dee
...
...
@@ -25,21 +25,28 @@ function c65384188.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc1
,
tc2
=
Duel
.
GetFirstTarget
()
if
tc1
:
IsRelateToEffect
(
e
)
and
tc1
:
IsFaceup
()
and
tc2
:
IsRelateToEffect
(
e
)
and
tc2
:
IsFaceup
()
then
local
a
=
0
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc1
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
tc2
:
RegisterEffect
(
e3
)
local
e4
=
e2
:
Clone
()
tc2
:
RegisterEffect
(
e4
)
if
tc1
:
IsDefencePos
()
or
tc2
:
IsDefencePos
()
then
return
end
if
not
tc1
:
IsDisabled
()
then
tc1
:
RegisterEffect
(
e1
)
tc1
:
RegisterEffect
(
e2
)
a
=
a
+
1
end
if
not
tc2
:
IsDisabled
()
then
local
e3
=
e1
:
Clone
()
local
e4
=
e2
:
Clone
()
tc2
:
RegisterEffect
(
e3
)
tc2
:
RegisterEffect
(
e4
)
a
=
a
+
1
end
if
tc1
:
IsDefencePos
()
or
tc2
:
IsDefencePos
()
or
a
~=
2
then
return
end
Duel
.
BreakEffect
()
c65384188
.
reg
(
c
,
tc1
,
tc2
)
c65384188
.
reg
(
c
,
tc2
,
tc1
)
...
...
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