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
2ddf27e5
Commit
2ddf27e5
authored
Dec 02, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto Push by Miyuki
parent
28df6f5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
expansions/script/c57300000.lua
expansions/script/c57300000.lua
+1
-1
expansions/script/c57300025.lua
expansions/script/c57300025.lua
+5
-5
expansions/script/c57320008.lua
expansions/script/c57320008.lua
+3
-3
No files found.
expansions/script/c57300000.lua
View file @
2ddf27e5
...
...
@@ -435,7 +435,7 @@ end
function
cm
.
GetFusionMaterial
(
tp
,
loc
,
oloc
,
f
,
gc
,
e
,
...
)
local
g1
=
Duel
.
GetFusionMaterial
(
tp
)
if
loc
then
local
floc
=
bit
.
band
(
loc
,
LOCATION_ONFIELD
+
LOCATION_HAND
)
local
floc
=
(
loc
&
LOCATION_ONFIELD
+
LOCATION_HAND
)
if
floc
~=
0
then
g1
=
g1
:
Filter
(
Card
.
IsLocation
,
nil
,
floc
)
else
...
...
expansions/script/c57300025.lua
View file @
2ddf27e5
...
...
@@ -75,7 +75,7 @@ function c57300025.fscon(e,g,gc,chkfnf)
if
g
==
nil
then
return
true
end
local
sg
=
Group
.
CreateGroup
()
local
fs
=
false
local
chkf
=
bit
.
band
(
chkfnf
,
0xff
)
local
chkf
=
(
chkfnf
&
0xff
)
local
mg
=
g
:
Filter
(
c57300025
.
fsfilter
,
nil
,
e
:
GetHandler
())
if
gc
then
if
not
c57300025
.
fsfilter
(
gc
,
fc
)
then
return
false
end
...
...
@@ -96,7 +96,7 @@ function c57300025.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
local
sg
=
Group
.
CreateGroup
()
if
gc
then
sg
:
AddCard
(
gc
)
end
local
fs
=
false
local
chkf
=
bit
.
band
(
chkfnf
,
0xff
)
local
chkf
=
(
chkfnf
&
0xff
)
local
mg
=
eg
:
Filter
(
c57300025
.
fsfilter
,
nil
,
e
:
GetHandler
())
local
tg
=
c57300025
.
SelectGroup
(
tp
,
HINTMSG_FMATERIAL
,
mg
,
c57300025
.
fgoal
,
sg
,
1
,
5
,
e
:
GetHandler
(),
tp
,
chkf
)
Duel
.
SetFusionMaterial
(
tg
)
...
...
@@ -183,10 +183,10 @@ function c57300025.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c57300025
.
dfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
local
cat
=
e
:
GetCategory
()
if
bit
.
band
(
g
:
GetFirst
():
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
then
e
:
SetCategory
(
bit
.
bor
(
cat
,
CATEGORY_SPECIAL_SUMMON
))
if
(
g
:
GetFirst
():
GetOriginalType
()
&
TYPE_MONSTER
)
~=
0
then
e
:
SetCategory
(
(
cat
|
CATEGORY_SPECIAL_SUMMON
))
else
e
:
SetCategory
(
bit
.
band
(
cat
,
bit
.
bnot
(
CATEGORY_SPECIAL_SUMMON
)))
e
:
SetCategory
(
(
cat
&
bit
.
bnot
(
CATEGORY_SPECIAL_SUMMON
)))
end
end
function
c57300025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c57320008.lua
View file @
2ddf27e5
...
...
@@ -28,10 +28,10 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
dfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
local
cat
=
e
:
GetCategory
()
if
bit
.
band
(
g
:
GetFirst
():
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
then
e
:
SetCategory
(
bit
.
bor
(
cat
,
CATEGORY_SPECIAL_SUMMON
))
if
(
g
:
GetFirst
():
GetOriginalType
()
&
TYPE_MONSTER
)
~=
0
then
e
:
SetCategory
(
(
cat
|
CATEGORY_SPECIAL_SUMMON
))
else
e
:
SetCategory
(
bit
.
band
(
cat
,
bit
.
bnot
(
CATEGORY_SPECIAL_SUMMON
)))
e
:
SetCategory
(
(
cat
&
bit
.
bnot
(
CATEGORY_SPECIAL_SUMMON
)))
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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