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
598538d5
Commit
598538d5
authored
May 13, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add an option for opponent action
parent
f389d3a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
manual/special.lua
manual/special.lua
+10
-4
No files found.
manual/special.lua
View file @
598538d5
...
@@ -27,7 +27,7 @@ local function grantDecktop(e)
...
@@ -27,7 +27,7 @@ local function grantDecktop(e)
Duel
.
RegisterEffect
(
e3
,
0
)
Duel
.
RegisterEffect
(
e3
,
0
)
end
end
local
function
fieldEffectTemplate
(
r
)
local
function
fieldEffectTemplate
(
r
,
notg
)
local
e1
=
Effect
.
GlobalEffect
()
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
@@ -36,13 +36,15 @@ local function fieldEffectTemplate(r)
...
@@ -36,13 +36,15 @@ local function fieldEffectTemplate(r)
e1
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e1
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCurrentChain
()
==
0
end
if
chk
==
0
then
return
Duel
.
GetCurrentChain
()
==
0
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetChainLimit
(
aux
.
FALSE
)
if
not
notg
then
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
)
end
)
return
e1
return
e1
end
end
local
function
deckEffectTemplate
()
local
function
deckEffectTemplate
(
notg
)
return
fieldEffectTemplate
(
LOCATION_DECK
)
return
fieldEffectTemplate
(
LOCATION_DECK
,
notg
)
end
end
function
Auxiliary
.
PreloadUds
()
function
Auxiliary
.
PreloadUds
()
...
@@ -164,6 +166,10 @@ function Auxiliary.PreloadUds()
...
@@ -164,6 +166,10 @@ function Auxiliary.PreloadUds()
end
)
end
)
grantDecktop
(
e1
)
grantDecktop
(
e1
)
local
e1
=
deckEffectTemplate
(
true
)
e1
:
SetDescription
(
1294
)
grantDecktop
(
e1
)
--single card effects
--single card effects
local
e1
=
fieldEffectTemplate
(
LOCATION_ONFIELD
)
local
e1
=
fieldEffectTemplate
(
LOCATION_ONFIELD
)
e1
:
SetDescription
(
1111
)
e1
:
SetDescription
(
1111
)
...
...
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