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
yks
pre-release-database-cdb
Commits
33efb20f
Commit
33efb20f
authored
Jan 27, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Swallow's Cowrie
按照解放时的等级进行检索
parent
fd1f6655
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
script/c101203088.lua
script/c101203088.lua
+6
-8
No files found.
script/c101203088.lua
View file @
33efb20f
...
...
@@ -18,12 +18,10 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsReleasable
()
and
c
:
IsFaceupEx
()
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetLevel
()
)
end
function
s
.
thfilter
(
c
,
tc
)
return
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
GetOriginalLevel
()
==
tc
:
GetLevel
()
and
c
:
IsAbleToHand
()
function
s
.
thfilter
(
c
,
lv
)
return
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsLevel
(
lv
)
and
c
:
IsAbleToHand
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
true
):
Filter
(
s
.
cfilter
,
nil
,
tp
)
...
...
@@ -33,14 +31,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
return
g
:
GetCount
()
>=
1
end
local
rg
=
g
:
FilterSelect
(
tp
,
s
.
cfilter
,
1
,
1
,
nil
,
tp
)
e
:
SetLabel
Object
(
rg
:
GetFirst
())
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
lv
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
lv
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
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