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
6db180e1
Commit
6db180e1
authored
Feb 16, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update srv5555 skills
parent
a566c205
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
dc-srv5555/S2/special-14.1-DieFriendly.lua
dc-srv5555/S2/special-14.1-DieFriendly.lua
+24
-0
dc-srv5555/S2/special-14.2-GyakudenSaiban.lua
dc-srv5555/S2/special-14.2-GyakudenSaiban.lua
+47
-0
No files found.
dc-srv5555/S2/special-14.1-DieFriendly.lua
0 → 100644
View file @
6db180e1
--村规决斗:携手共尽
--所有起动效果和诱发即时效果变为双方都能使用的效果。
--后攻开局时多抽1张。
local
OrigSetType
=
Effect
.
SetType
function
Auxiliary
.
PreloadUds
()
Effect
.
SetType
=
function
(
e
,
typ
)
if
(
typ
&
EFFECT_TYPE_IGNITION
)
+
(
typ
&
EFFECT_TYPE_QUICK_O
)
>
0
then
e
:
SetProperty
(
e
:
GetProperty
()
|
EFFECT_FLAG_BOTH_SIDE
)
end
OrigSetType
(
e
,
typ
)
end
-- 1 more draw
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_ADJUST
)
e1
:
SetOperation
(
function
(
e
)
Duel
.
Draw
(
1
,
1
,
REASON_RULE
)
e
:
Reset
()
end
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
\ No newline at end of file
dc-srv5555/S2/special-14.2-GyakudenSaiban.lua
0 → 100644
View file @
6db180e1
--村规决斗:逆转裁判
--效果处理时,对方可以支付1000点基本分。
--那个效果处理完成后,对方以对方的视角再处理1次效果。
--细则:
--适用于任何效果,但处理后不一定有意义。
--比如旋风即使再处理一次效果,对象也不会有所改变;
--又比如天空侠虽然可以二次处理效果,但对方的卡组未必有合适的卡可拿。
local
OrigRegister
=
Card
.
RegisterEffect
local
OrigClone
=
Effect
.
Clone
CUNGUI
=
{}
CUNGUI
.
EffectSaver
=
{}
function
Auxiliary
.
PreloadUds
()
Card
.
RegisterEffect
=
function
(
c
,
e
,
b
)
local
typ
=
e
:
GetType
()
if
(
typ
&
0x7d0
)
>
0
and
e
:
GetOperation
()
~=
nil
then
CUNGUI
.
EffectSaver
[
e
]
=
e
:
GetOperation
()
e
:
SetOperation
(
CUNGUI
.
Operation
)
end
return
OrigRegister
(
c
,
e
,
b
)
end
Effect
.
Clone
=
function
(
e
)
local
ce
=
OrigClone
(
e
)
if
e
:
GetOperation
()
==
CUNGUI
.
Operation
then
ce
:
SetOperation
(
CUNGUI
.
EffectSaver
[
e
])
end
return
ce
end
end
function
CUNGUI
.
Operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
runDouble
=
false
if
Duel
.
CheckLPCost
(
1
-
tp
,
1000
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
57496978
,
0
))
then
Duel
.
PayLPCost
(
1
-
tp
,
1000
)
runDouble
=
true
end
local
result
=
CUNGUI
.
EffectSaver
[
e
](
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
runDouble
then
Duel
.
BreakEffect
()
result
=
CUNGUI
.
EffectSaver
[
e
](
e
,
1
-
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
return
result
end
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