Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
b8de2b76
Commit
b8de2b76
authored
Apr 28, 2013
by
woodee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
attribute,not race
parent
f1542bbf
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 @
b8de2b76
...
...
@@ -17,17 +17,17 @@ function c60530944.condition(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c60530944
.
get
race
(
g
)
local
a
rc
=
0
function
c60530944
.
get
attr
(
g
)
local
a
at
=
0
local
tc
=
g
:
GetFirst
()
while
tc
do
a
rc
=
bit
.
bor
(
arc
,
tc
:
GetRac
e
())
a
at
=
bit
.
bor
(
aat
,
tc
:
GetAttribut
e
())
tc
=
g
:
GetNext
()
end
return
a
rc
return
a
at
end
function
c60530944
.
rmfilter
(
c
,
rc
)
return
not
c
:
Is
Race
(
0xffffff
-
rc
)
function
c60530944
.
rmfilter
(
c
,
at
)
return
not
c
:
Is
Attribute
(
0xff
-
at
)
end
function
c60530944
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
...
...
@@ -38,10 +38,10 @@ function c60530944.operation(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
c
=
e
:
GetHandler
()
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
)
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
)
g1
:
Merge
(
g2
)
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