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
8f5eb7ab
Commit
8f5eb7ab
authored
Dec 26, 2021
by
oilloillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复999011的44行,tp→c:GetControler()
parent
d7565f31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
97 deletions
+97
-97
script/c999011.lua
script/c999011.lua
+97
-97
No files found.
script/c999011.lua
View file @
8f5eb7ab
--背负植物之人 濑笈叶
--背负植物之人 濑笈叶
local
M
=
c999011
local
M
=
c999011
local
Mid
=
999011
local
Mid
=
999011
function
M
.
initial_effect
(
c
)
function
M
.
initial_effect
(
c
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
Mid
*
10
+
1
)
e1
:
SetCountLimit
(
1
,
Mid
*
10
+
1
)
e1
:
SetCondition
(
M
.
spcon
)
e1
:
SetCondition
(
M
.
spcon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
-- to deck
-- to deck
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
Mid
*
10
+
2
)
e2
:
SetCountLimit
(
1
,
Mid
*
10
+
2
)
e2
:
SetTarget
(
M
.
tdTg
)
e2
:
SetTarget
(
M
.
tdTg
)
e2
:
SetOperation
(
M
.
tdOp
)
e2
:
SetOperation
(
M
.
tdOp
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
-- to hand
-- to hand
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCode
(
EVENT_TO_GRAVE
)
e4
:
SetCode
(
EVENT_TO_GRAVE
)
e4
:
SetCountLimit
(
1
,
Mid
*
10
+
3
)
e4
:
SetCountLimit
(
1
,
Mid
*
10
+
3
)
e4
:
SetCondition
(
M
.
thCon
)
e4
:
SetCondition
(
M
.
thCon
)
e4
:
SetTarget
(
M
.
thTg
)
e4
:
SetTarget
(
M
.
thTg
)
e4
:
SetOperation
(
M
.
thOp
)
e4
:
SetOperation
(
M
.
thOp
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
--
--
function
M
.
spcon
(
e
,
c
)
function
M
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
M
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
M
.
spfilter
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
end
function
M
.
spfilter
(
c
)
function
M
.
spfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0xaa6
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0xaa6
)
end
end
--
--
function
M
.
tdTg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
M
.
tdTg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
allg
=
Duel
.
GetMatchingGroup
(
M
.
tdTgFilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
allg
=
Duel
.
GetMatchingGroup
(
M
.
tdTgFilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
count
=
allg
:
GetCount
()
local
count
=
allg
:
GetCount
()
if
chk
==
0
then
if
chk
==
0
then
return
allg
:
FilterCount
(
Card
.
IsAbleToDeck
,
nil
)
==
count
return
allg
:
FilterCount
(
Card
.
IsAbleToDeck
,
nil
)
==
count
end
end
Duel
.
SendtoDeck
(
allg
,
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
allg
,
nil
,
2
,
REASON_COST
)
local
heal
=
count
*
100
local
heal
=
count
*
100
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
heal
)
Duel
.
SetTargetParam
(
heal
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
heal
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
heal
)
end
end
function
M
.
tdTgFilter
(
c
)
function
M
.
tdTgFilter
(
c
)
return
not
c
:
IsCode
(
999001
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
not
c
:
IsCode
(
999001
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
M
.
tdOp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
M
.
tdOp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
end
--
--
function
M
.
thCon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
M
.
thCon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
&
REASON_FUSION
==
REASON_FUSION
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
&
REASON_FUSION
==
REASON_FUSION
end
end
function
M
.
thfilter
(
c
)
function
M
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xaa6
)
and
not
c
:
IsCode
(
Mid
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xaa6
)
and
not
c
:
IsCode
(
Mid
)
and
c
:
IsAbleToHand
()
end
end
function
M
.
thTg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
M
.
thTg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
M
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
M
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
function
M
.
thOp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
M
.
thOp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
M
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
M
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
end
end
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