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
Ruby
pre-release-database-cdb
Commits
b5e5e022
Commit
b5e5e022
authored
Jul 31, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 共闘闘君
parent
c182e00d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
script/c101206067.lua
script/c101206067.lua
+7
-11
No files found.
script/c101206067.lua
View file @
b5e5e022
...
...
@@ -10,6 +10,7 @@ function s.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCost
(
s
.
atkcost
)
...
...
@@ -50,20 +51,17 @@ function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
return
true
end
function
s
.
costfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
IsExistingTarget
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
tp
,
Group
.
FromCards
(
c
)
)
return
c
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
IsExistingTarget
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
function
s
.
matfilter1
(
c
,
tp
,
g
)
local
sg
=
g
:
Clone
()
sg
:
AddCard
(
c
)
function
s
.
matfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttack
(
0
)
end
function
s
.
fselect
(
g
,
tp
)
return
Duel
.
IsExistingTarget
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
g
,
tp
,
g
)
return
Duel
.
IsExistingTarget
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
g
)
and
Duel
.
CheckReleaseGroup
(
tp
,
aux
.
IsInGroup
,
#
g
,
nil
,
g
)
end
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
e
:
GetLabelObject
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
matfilter1
(
chkc
,
tp
,
g
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
matfilter1
(
chkc
)
end
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
return
Duel
.
CheckReleaseGroup
(
tp
,
s
.
costfilter
,
1
,
nil
,
tp
)
...
...
@@ -71,13 +69,11 @@ function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
s
.
costfilter
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
s
.
fselect
,
false
,
1
,
rg
:
GetCount
(),
tp
)
sg
:
KeepAlive
()
e
:
SetLabelObject
(
sg
)
aux
.
UseExtraReleaseCount
(
sg
,
tp
)
local
ct
=
Duel
.
Release
(
sg
,
REASON_COST
)
e
:
SetLabel
(
ct
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
,
sg
)
Duel
.
SelectTarget
(
tp
,
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -88,7 +84,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
e
:
GetLabel
()
*
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
if
e
:
GetLabel
()
>
1
then
if
not
tc
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
and
e
:
GetLabel
()
>
1
then
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
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