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
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
Commits
778d389d
Commit
778d389d
authored
Dec 26, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #202 from nekrozar/patch-2
fix Electromagnetic Bagworm, Double Magical Arm Bind
parents
02e9677e
e0dd759f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
c72621670.lua
c72621670.lua
+4
-1
c7914843.lua
c7914843.lua
+4
-1
No files found.
c72621670.lua
View file @
778d389d
...
@@ -53,8 +53,11 @@ function c72621670.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,8 +53,11 @@ function c72621670.activate(e,tp,eg,ep,ev,re,r,rp)
dg
:
Clear
()
dg
:
Clear
()
end
end
local
tc
=
sg
:
GetFirst
()
local
tc
=
sg
:
GetFirst
()
local
tct
=
1
if
Duel
.
GetTurnPlayer
()
~=
tp
then
tct
=
2
elseif
Duel
.
GetCurrentPhase
()
==
PHASE_END
then
tct
=
3
end
while
tc
do
while
tc
do
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
+
RESET_SELF_TURN
,
1
)
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
+
RESET_SELF_TURN
,
tct
)
tc
=
sg
:
GetNext
()
tc
=
sg
:
GetNext
()
end
end
if
dg
:
GetCount
()
>
0
then
Duel
.
Destroy
(
dg
,
REASON_RULE
)
end
if
dg
:
GetCount
()
>
0
then
Duel
.
Destroy
(
dg
,
REASON_RULE
)
end
...
...
c7914843.lua
View file @
778d389d
...
@@ -30,7 +30,10 @@ function c7914843.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -30,7 +30,10 @@ function c7914843.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c7914843
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7914843
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
+
RESET_SELF_TURN
,
1
)
then
local
tct
=
1
if
Duel
.
GetTurnPlayer
()
~=
tp
then
tct
=
2
elseif
Duel
.
GetCurrentPhase
()
==
PHASE_END
then
tct
=
3
end
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
tct
)
then
if
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsAbleToChangeControler
()
then
if
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsAbleToChangeControler
()
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
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