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
530ad0dc
Commit
530ad0dc
authored
Apr 27, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Magic Reflector
parent
9859dc77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
c61844784.lua
c61844784.lua
+3
-3
No files found.
c61844784.lua
View file @
530ad0dc
...
@@ -22,7 +22,7 @@ end
...
@@ -22,7 +22,7 @@ end
function
c61844784
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61844784
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x2a
,
1
)
tc
:
AddCounter
(
0x
10
2a
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
...
@@ -34,9 +34,9 @@ function c61844784.addc(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,9 +34,9 @@ function c61844784.addc(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c61844784
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61844784
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_RULE
)
==
0
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_RULE
)
==
0
and
e
:
GetHandler
():
GetCounter
(
0x2a
)
>
0
end
and
e
:
GetHandler
():
GetCounter
(
0x
10
2a
)
>
0
end
return
true
return
true
end
end
function
c61844784
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61844784
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x2a
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x
10
2a
,
1
,
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