Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
specials
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
JoyJ
specials
Commits
5c690221
Commit
5c690221
authored
May 02, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
elimate declared cards
parent
24bc7a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
forbid/special.lua
forbid/special.lua
+10
-1
No files found.
forbid/special.lua
View file @
5c690221
Duel
.
LoadScript
(
"underscore.lua"
)
Duel
.
LoadScript
(
"underscore.lua"
)
local
_FORBID_LIST
=
{}
local
_FORBID_LIST
=
{}
local
function
elimateExisting
()
local
formattedOpcodes
=
_
.
map
(
_FORBID_LIST
,
function
(
m
)
return
{
m
,
OPCODE_ISCODE
,
OPCODE_NOT
}
end
)
for
i
=
2
,
#
formattedOpcodes
do
_
.
push
(
formattedOpcodes
[
i
],
OPCODE_AND
)
end
return
_
.
flattern
(
formattedOpcodes
)
end
function
Auxiliary
.
PreloadUds
()
function
Auxiliary
.
PreloadUds
()
local
e1
=
Effect
.
GlobalEffect
()
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -11,7 +20,7 @@ function Auxiliary.PreloadUds()
...
@@ -11,7 +20,7 @@ function Auxiliary.PreloadUds()
end
)
end
)
e1
:
SetOperation
(
function
()
e1
:
SetOperation
(
function
()
local
tp
=
Duel
.
GetTurnPlayer
()
local
tp
=
Duel
.
GetTurnPlayer
()
local
ac
=
Duel
.
AnnounceCard
(
tp
)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
elimateExisting
())
)
_
.
push
(
_FORBID_LIST
,
ac
)
_
.
push
(
_FORBID_LIST
,
ac
)
end
)
end
)
Duel
.
RegisterEffect
(
e1
,
0
)
Duel
.
RegisterEffect
(
e1
,
0
)
...
...
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