Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
21b6f08b
Commit
21b6f08b
authored
Jul 10, 2022
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c27085.lua 饼梦亡语
parent
07693519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
script/c27085.lua
script/c27085.lua
+11
-9
No files found.
script/c27085.lua
View file @
21b6f08b
...
...
@@ -41,9 +41,7 @@ function c27085.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
27085
,
2
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_DESTROY
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetLabelObject
(
e0
)
e3
:
SetTarget
(
c27085
.
thtg
)
e3
:
SetOperation
(
c27085
.
thop
)
...
...
@@ -112,18 +110,22 @@ function c27085.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
-- local g = e:GetHandler():GetOverlayGroup()
local
e0
=
e
:
GetLabelObject
()
local
g
=
e0
:
GetLabelObject
()
if
chk
==
0
then
return
g
and
g
:
GetCount
()
>
0
end
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
if
chk
==
0
then
return
true
end
if
g
and
g
:
GetCount
()
>
0
then
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c27085
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
-- local g = e:GetHandler():GetOverlayGroup()
local
e0
=
e
:
GetLabelObject
()
local
g
=
e0
:
GetLabelObject
()
-- Duel.Recover(0,g:GetCount(),0x40)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
if
g
and
g
:
GetCount
()
>
0
then
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
end
end
end
function
c27085
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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