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
MyCard
pre-release-database-cdb
Commits
9d2906d5
Commit
9d2906d5
authored
Jan 27, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Psychic Arsenal
发动时应可以选0攻怪兽为对象,提示语改为选择对象 自己满场应该也能发动墓地效果,效果处理时先选回卡组的卡片再选加入手卡的卡片
parent
662d806e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
script/c101203082.lua
script/c101203082.lua
+14
-11
No files found.
script/c101203082.lua
View file @
9d2906d5
...
...
@@ -29,11 +29,11 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToRemove
()
and
c
:
Get
TextAttack
()
>
0
and
c
:
Get
OriginalType
()
&
TYPE_MONSTER
~=
0
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAbleToRemove
()
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetLevel
(),
c
:
GetAttribute
())
and
Duel
.
CheckLPCost
(
tp
,
c
:
GetLevel
()
*
200
)
end
function
s
.
thfilter
(
c
,
lv
,
att
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
GetAttribute
()
==
att
and
c
:
GetLevel
()
>
=
0
and
c
:
GetLevel
()
>
lv
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
GetAttribute
()
==
att
and
c
:
GetLevel
()
>
lv
and
c
:
IsAbleToHand
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
rmfilter
(
chkc
,
tp
)
end
...
...
@@ -43,7 +43,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return
Duel
.
IsExistingTarget
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
g
:
GetFirst
()
Duel
.
PayLPCost
(
tp
,
tc
:
GetLevel
()
*
200
)
...
...
@@ -52,8 +52,7 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFacedown
()
then
return
end
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
:
GetLevel
(),
tc
:
GetAttribute
())
if
g
:
GetCount
()
>
0
then
...
...
@@ -74,7 +73,7 @@ end
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
dg
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
dg
:
CheckSubGroup
(
s
.
fselect
,
2
,
2
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
dg
:
CheckSubGroup
(
s
.
fselect
,
2
,
2
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
dg
:
SelectSubGroup
(
tp
,
s
.
fselect
,
false
,
2
,
2
,
e
,
tp
)
Duel
.
SetTargetCard
(
g
)
...
...
@@ -82,17 +81,21 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
s
.
thfilter2
(
c
,
e
,
tp
)
return
c
:
IsAbleTo
Hand
()
return
c
:
IsAbleTo
Deck
()
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
SPSUMMON
)
if
tg
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
local
sg
=
tg
:
FilterSelect
(
tp
,
s
.
thfilter2
,
1
,
1
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
HintSelection
(
sg
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
sg
)
tg
:
Sub
(
sg
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
tg
)
if
sg
:
GetFirst
():
IsLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
tg
:
GetCount
()
>
0
and
tg
:
GetFirst
():
IsAbleToHand
()
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
end
end
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