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
REIKAI
ygopro
Commits
2fb15976
Commit
2fb15976
authored
May 01, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #506 from woodee/patch-16
fix
parents
f1542bbf
b8de2b76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
script/c60530944.lua
script/c60530944.lua
+8
-8
No files found.
script/c60530944.lua
View file @
2fb15976
...
@@ -17,17 +17,17 @@ function c60530944.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,17 +17,17 @@ function c60530944.condition(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c60530944
.
get
race
(
g
)
function
c60530944
.
get
attr
(
g
)
local
a
rc
=
0
local
a
at
=
0
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
a
rc
=
bit
.
bor
(
arc
,
tc
:
GetRac
e
())
a
at
=
bit
.
bor
(
aat
,
tc
:
GetAttribut
e
())
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
return
a
rc
return
a
at
end
end
function
c60530944
.
rmfilter
(
c
,
rc
)
function
c60530944
.
rmfilter
(
c
,
at
)
return
not
c
:
Is
Race
(
0xffffff
-
rc
)
return
not
c
:
Is
Attribute
(
0xff
-
at
)
end
end
function
c60530944
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60530944
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
...
@@ -38,10 +38,10 @@ function c60530944.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,10 +38,10 @@ function c60530944.operation(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
g2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60530944
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60530944
,
0
))
local
r1
=
Duel
.
Announce
Race
(
tp
,
1
,
c60530944
.
getrace
(
g1
))
local
r1
=
Duel
.
Announce
Attribute
(
tp
,
1
,
c60530944
.
getattr
(
g1
))
g1
:
Remove
(
c60530944
.
rmfilter
,
nil
,
r1
)
g1
:
Remove
(
c60530944
.
rmfilter
,
nil
,
r1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
60530944
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
60530944
,
0
))
local
r2
=
Duel
.
Announce
Race
(
1
-
tp
,
1
,
c60530944
.
getrace
(
g2
))
local
r2
=
Duel
.
Announce
Attribute
(
1
-
tp
,
1
,
c60530944
.
getattr
(
g2
))
g2
:
Remove
(
c60530944
.
rmfilter
,
nil
,
r2
)
g2
:
Remove
(
c60530944
.
rmfilter
,
nil
,
r2
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g1
,
REASON_EFFECT
)
...
...
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