Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Crescent/毛虫
pre-release-database-cdb
Commits
6873cdee
Commit
6873cdee
authored
Sep 10, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ARG☆S-栄冠のアドラ
parent
e40ad9f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
script/c101207010.lua
script/c101207010.lua
+11
-12
No files found.
script/c101207010.lua
View file @
6873cdee
...
@@ -5,10 +5,10 @@ function s.initial_effect(c)
...
@@ -5,10 +5,10 @@ function s.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_
MAIN_END
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_
DAMAGE_STEP
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
s
.
atkcon
)
e1
:
SetCondition
(
s
.
atkcon
)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetCost
(
aux
.
bfgcost
)
...
@@ -52,11 +52,12 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,11 +52,12 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
nzatk
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
):
Select
(
tp
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
nzatk
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
):
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
...
@@ -77,22 +78,20 @@ end
...
@@ -77,22 +78,20 @@ end
function
s
.
chainlm
(
e
,
rp
,
tp
)
function
s
.
chainlm
(
e
,
rp
,
tp
)
return
tp
==
rp
return
tp
==
rp
end
end
function
s
.
setfilter
(
c
)
function
s
.
setfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x2c3
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0x2c3
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
end
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
tp
)
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
1
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
1
end
end
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ct
<
2
then
return
end
if
ct
<
1
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
tp
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
<
1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tg1
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
1
,
2
)
local
tg1
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
1
,
ct
)
for
tc
in
aux
.
Next
(
tg1
)
do
for
tc
in
aux
.
Next
(
tg1
)
do
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
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