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
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
八宫一月
ygopro-scripts
Commits
573645ee
Commit
573645ee
authored
Jul 07, 2019
by
Edoardo Lolletti
Committed by
mercury233
Jul 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename AnnounceCardFilter to AnnounceCard (#1184)
parent
6f7e8003
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
41 additions
and
45 deletions
+41
-45
c10406322.lua
c10406322.lua
+2
-2
c10809984.lua
c10809984.lua
+2
-2
c15800838.lua
c15800838.lua
+2
-2
c18486927.lua
c18486927.lua
+2
-2
c18631392.lua
c18631392.lua
+3
-3
c22796548.lua
c22796548.lua
+2
-2
c24413299.lua
c24413299.lua
+2
-2
c28776350.lua
c28776350.lua
+2
-2
c29417188.lua
c29417188.lua
+1
-1
c33423043.lua
c33423043.lua
+2
-2
c38723936.lua
c38723936.lua
+1
-1
c39238953.lua
c39238953.lua
+2
-2
c39913299.lua
c39913299.lua
+2
-2
c40971261.lua
c40971261.lua
+1
-1
c43711255.lua
c43711255.lua
+1
-1
c50078320.lua
c50078320.lua
+6
-7
c65681983.lua
c65681983.lua
+2
-2
c72403299.lua
c72403299.lua
+2
-2
c78053598.lua
c78053598.lua
+2
-2
c8323633.lua
c8323633.lua
+1
-1
c91969909.lua
c91969909.lua
+1
-1
constant.lua
constant.lua
+0
-3
No files found.
c10406322.lua
View file @
573645ee
...
...
@@ -32,9 +32,9 @@ function c10406322.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c10406322
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c10406322
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c10406322
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c10406322
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
then
return
end
...
...
c10809984.lua
View file @
573645ee
...
...
@@ -18,9 +18,9 @@ function c10809984.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c10809984
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c10809984
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c10809984
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c10809984
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c15800838.lua
View file @
573645ee
...
...
@@ -15,9 +15,9 @@ function c15800838.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c15800838
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c15800838
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c15800838
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c15800838
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c18486927.lua
View file @
573645ee
...
...
@@ -63,9 +63,9 @@ function c18486927.nametg(e,tp,eg,ep,ev,re,r,rp,chk)
local
code
=
e
:
GetHandler
():
GetCode
()
--c:IsSetCard(0x51) and not c:IsCode(code)
c18486927
.
announce_filter
=
{
0x51
,
OPCODE_ISSETCARD
,
code
,
OPCODE_ISCODE
,
OPCODE_NOT
,
OPCODE_AND
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c18486927
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c18486927
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c18486927
.
nameop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c18631392.lua
View file @
573645ee
...
...
@@ -53,11 +53,11 @@ function c18631392.anctg(e,tp,eg,ep,ev,re,r,rp,chk)
end
c18631392
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac1
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
local
ac1
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac2
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
local
ac2
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac3
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
local
ac3
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c18631392
.
announce_filter
))
e
:
SetOperation
(
c18631392
.
retop
(
ac1
,
ac2
,
ac3
))
end
function
c18631392
.
hfilter
(
c
,
code1
,
code2
,
code3
)
...
...
c22796548.lua
View file @
573645ee
...
...
@@ -26,9 +26,9 @@ function c22796548.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c22796548
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c22796548
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c22796548
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c22796548
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
then
return
end
...
...
c24413299.lua
View file @
573645ee
...
...
@@ -20,9 +20,9 @@ function c24413299.target(e,tp,eg,ep,ev,re,r,rp,chk)
or
Duel
.
IsExistingMatchingCard
(
c24413299
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c24413299
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c24413299
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c24413299
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c24413299
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
...
...
c28776350.lua
View file @
573645ee
...
...
@@ -74,9 +74,9 @@ function c28776350.actg(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c28776350
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c28776350
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c28776350
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c28776350
.
thfilter
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
...
...
c29417188.lua
View file @
573645ee
...
...
@@ -15,7 +15,7 @@ function c29417188.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c29417188
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c33423043.lua
View file @
573645ee
...
...
@@ -14,9 +14,9 @@ function c33423043.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c33423043
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c33423043
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c33423043
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c33423043
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c38723936.lua
View file @
573645ee
...
...
@@ -27,7 +27,7 @@ function c38723936.activate(e,tp,eg,ep,ev,re,r,rp)
tc
=
g
:
GetNext
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
(
1
-
tp
,
TYPE_MONSTER
)
local
ac
=
Duel
.
AnnounceCard
(
1
-
tp
,
TYPE_MONSTER
,
OPCODE_ISTYPE
)
if
ac
~=
last
:
GetCode
()
then
Duel
.
SpecialSummon
(
last
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
...
...
c39238953.lua
View file @
573645ee
...
...
@@ -19,9 +19,9 @@ function c39238953.target(e,tp,eg,ep,ev,re,r,rp,chk)
or
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c39238953
.
announce_filter
=
{
TYPE_MONSTER
,
OPCODE_ISTYPE
,
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
,
OPCODE_AND
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c39238953
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c39238953
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c39238953
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c39913299.lua
View file @
573645ee
...
...
@@ -18,9 +18,9 @@ function c39913299.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c39913299
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c39913299
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c39913299
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c39913299
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
...
...
c40971261.lua
View file @
573645ee
...
...
@@ -48,7 +48,7 @@ function c40971261.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c40971261
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c43711255.lua
View file @
573645ee
...
...
@@ -28,7 +28,7 @@ function c43711255.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c43711255
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
c50078320.lua
View file @
573645ee
...
...
@@ -23,21 +23,20 @@ function c50078320.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c50078320
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
return
rp
==
1
-
tp
and
ex
and
bit
.
band
(
cv
,
ANNOUNCE_CARD
+
ANNOUNCE_CARD_FILTER
)
~=
0
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
return
rp
==
1
-
tp
and
ex
end
function
c50078320
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c50078320
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_ANNOUNCE
)
local
code
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_PARAM
)
local
ac
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
if
bit
.
band
(
cv
,
ANNOUNCE_CARD
)
~=
0
then
--
c:IsType(cv) and
not c:IsCode(code)
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
cv
,
OPCODE_ISTYPE
,
code
,
OPCODE_ISCODE
,
OPCODE_NOT
,
OPCODE_AND
)
if
re
:
GetHandler
().
announce_filter
==
nil
then
--not c:IsCode(code)
ac
=
Duel
.
AnnounceCard
(
tp
,
code
,
OPCODE_ISCODE
,
OPCODE_NOT
)
else
local
afilter
=
{
table.unpack
(
re
:
GetHandler
().
announce_filter
)}
--and not c:IsCode(code)
...
...
@@ -45,7 +44,7 @@ function c50078320.operation(e,tp,eg,ep,ev,re,r,rp)
table.insert
(
afilter
,
OPCODE_ISCODE
)
table.insert
(
afilter
,
OPCODE_NOT
)
table.insert
(
afilter
,
OPCODE_AND
)
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
afilter
))
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
afilter
))
end
Duel
.
ChangeTargetParam
(
ev
,
ac
)
end
...
...
c65681983.lua
View file @
573645ee
...
...
@@ -34,10 +34,10 @@ function c65681983.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
afilter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
afilter
))
c65681983
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c65681983
.
filter
(
c
,
code
)
...
...
c72403299.lua
View file @
573645ee
...
...
@@ -15,9 +15,9 @@ function c72403299.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c72403299
.
announce_filter
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
}
local
ac
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c72403299
.
announce_filter
))
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c72403299
.
announce_filter
))
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c72403299
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
...
...
c78053598.lua
View file @
573645ee
...
...
@@ -13,9 +13,9 @@ function c78053598.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
c78053598
.
announce_filter
=
{
TYPE_MONSTER
,
OPCODE_ISTYPE
,
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
,
OPCODE_AND
}
local
code
=
Duel
.
AnnounceCard
Filter
(
tp
,
table.unpack
(
c78053598
.
announce_filter
))
local
code
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
c78053598
.
announce_filter
))
Duel
.
SetTargetParam
(
code
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD_FILTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c78053598
.
filter
(
c
,
code
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
...
...
c8323633.lua
View file @
573645ee
...
...
@@ -11,7 +11,7 @@ function c8323633.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
TYPE_MONSTER
)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
TYPE_MONSTER
,
OPCODE_ISTYPE
)
c
:
SetHint
(
CHINT_CARD
,
ac
)
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c91969909.lua
View file @
573645ee
...
...
@@ -43,7 +43,7 @@ function c91969909.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
ac
=
Duel
.
AnnounceCard
(
tp
)
Duel
.
SetTargetParam
(
ac
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
ANNOUNCE_CARD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
function
c91969909
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
...
...
constant.lua
View file @
573645ee
...
...
@@ -804,9 +804,6 @@ ACTIVITY_FLIPSUMMON =4 --
ACTIVITY_ATTACK
=
5
--
ACTIVITY_BATTLE_PHASE
=
6
-- not available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
ANNOUNCE_CARD
=
0x7
--宣言卡片
ANNOUNCE_CARD_FILTER
=
0x8
--宣言符合条件的卡片
--cards with double names
CARD_MARINE_DOLPHIN
=
78734254
--海洋海豚
CARD_TWINKLE_MOSS
=
13857930
--光輝苔蘚
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