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
c2e6fc8a
Commit
c2e6fc8a
authored
Feb 01, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sznw'
parents
2a00a028
cc4511cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
13 deletions
+29
-13
legend/special.lua
legend/special.lua
+29
-13
No files found.
legend/special.lua
View file @
c2e6fc8a
...
...
@@ -99,6 +99,29 @@ function isPlayerMissedOwner(p)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
10000020
+
p
)
end
function
applyBuff
(
c
,
buffOption
)
local
buffEffects
=
buffEffectsList
[
buffOption
]
local
hintGiven
=
false
for
_
,
buffEffect
in
ipairs
(
buffEffects
)
do
local
flags
=
EFFECT_FLAG_CANNOT_DISABLE
if
not
hintGiven
then
flags
=
flags
+
EFFECT_FLAG_CLIENT_HINT
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
AllHints
[
buffOption
])
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
buffEffect
.
code
)
e1
:
SetProperty
(
flags
)
e1
:
SetValue
(
buffEffect
.
value
)
c
:
RegisterEffect
(
e1
,
true
)
end
end
function
coinRandomNumber
()
local
c1
,
c2
,
c3
=
Duel
.
TossCoin
(
tp
,
3
)
return
(
c1
|
(
c2
<<
1
)
|
(
c3
<<
2
))
+
1
end
function
inititialize
()
local
choices
=
{}
local
monsters
=
{}
...
...
@@ -148,21 +171,14 @@ function inititialize()
end
local
buffOption
=
buffOptions
[
p
]
--Debug.Message(buffOption)
local
buffEffects
=
buffEffectsList
[
buffOption
]
--Debug.Message(type(buffEffects))
local
hintGiven
=
false
for
_
,
buffEffect
in
ipairs
(
buffEffects
)
do
local
flags
=
EFFECT_FLAG_CANNOT_DISABLE
if
not
hintGiven
then
flags
=
flags
+
EFFECT_FLAG_CLIENT_HINT
if
c
:
GetOriginalCode
()
===
4392470
then
for
option
in
buffEffectsList
do
applyBuff
(
c
,
option
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
AllHints
[
buffOption
])
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
buffEffect
.
code
)
e1
:
SetProperty
(
flags
)
e1
:
SetValue
(
buffEffect
.
value
)
c
:
RegisterEffect
(
e1
,
true
)
else
applyBuff
(
c
,
buffOption
)
end
end
local
e1
=
Effect
.
GlobalEffect
()
...
...
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