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
bd2aac58
Commit
bd2aac58
authored
Jan 29, 2025
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c34036.lua
parent
f0b9dc8e
Pipeline
#32864
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
14 deletions
+29
-14
script/c34036.lua
script/c34036.lua
+29
-14
No files found.
script/c34036.lua
View file @
bd2aac58
...
...
@@ -54,13 +54,14 @@ function s.ctfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsControlerCanBeChanged
()
end
function
s
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
ctrl_tp
=
e
:
GetHandlerPlayer
()
local
opp_tp
=
1
-
ctrl_tp
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ctfilter
,
opp_tp
,
LOCATION_MZONE
,
0
,
nil
)
if
#
g
==
0
then
return
false
end
local
maxatk
=
g
:
GetMaxGroup
(
Card
.
GetAttack
):
GetFirst
()
return
maxatk
and
Duel
.
GetLocationCount
(
ctrl_tp
,
LOCATION_MZONE
)
>
0
return
maxatk
and
e
:
GetHandler
():
IsOnField
()
and
seq
<=
4
and
Duel
.
CheckLocation
(
tp
,
LOCATION_MZONE
,
seq
)
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
ctfilter
,
opp_tp
,
LOCATION_MZONE
,
0
,
nil
)
local
maxatk
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
...
...
@@ -72,9 +73,10 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
local
ctrl_tp
=
c
:
GetControler
()
local
opp_tp
=
1
-
ctrl_tp
local
seq
=
c
:
GetSequence
()
-- 获取当前卡所在序列号
local
zone
=
1
<<
seq
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
opp_tp
,
LOCATION_MZONE
,
0
,
nil
)
if
#
g
==
0
then
return
end
if
#
g
==
0
and
not
(
c
:
IsOnField
()
and
seq
<=
4
and
Duel
.
CheckLocation
(
tp
,
LOCATION_MZONE
,
seq
))
then
return
end
-- 获取最高攻击力怪兽
local
maxatk
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
...
...
@@ -84,22 +86,35 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
end
local
tc
=
maxatk
:
GetFirst
()
if
tc
and
Duel
.
GetLocationCount
(
ctrl_tp
,
LOCATION_MZONE
,
seq
)
>
0
then
if
tc
and
tc
:
IsControlerCanBeChanged
()
then
-- 转移控制权
Duel
.
GetControl
(
tc
,
ctrl_tp
,
0
,
0
,
seq
)
Duel
.
GetControl
(
tc
,
tp
,
0
,
0
,
zone
)
-- 附加效果:无效化+不能攻击
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
if
tc
:
IsCanBeDisabledByEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
)
end
end
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e
2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e
2
)
local
e
4
=
Effect
.
CreateEffect
(
c
)
e
4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
4
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e
4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e
4
)
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