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
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
八宫一月
ygopro-THC-cards
Commits
a79dbd97
Commit
a79dbd97
authored
Jan 14, 2022
by
Grajade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c74561013.lua
parent
07f319c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
65 deletions
+67
-65
script/c74561013.lua
script/c74561013.lua
+67
-65
No files found.
script/c74561013.lua
View file @
a79dbd97
...
@@ -53,51 +53,77 @@ function cCardno.handcon(e)
...
@@ -53,51 +53,77 @@ function cCardno.handcon(e)
return
Duel
.
GetTurnCount
()
==
1
return
Duel
.
GetTurnCount
()
==
1
end
end
--Activate
--Activate
function
cCardno
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cCardno
.
rfilter
(
c
)
if
chk
==
0
then
return
true
end
return
c
:
IsSetCard
(
0x5208
,
0x6208
)
and
c
:
IsAbleToRemove
()
local
lp
=
Duel
.
GetLP
(
tp
)
e
:
SetLabel
(
lp
)
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
function
cCardno
.
rfilter
(
c
,
tp
)
function
cCardno
.
gfilter
(
c
)
return
(
c
:
IsSetCard
(
0x5208
)
or
c
:
IsSetCard
(
0x6208
))
and
c
:
IsAbleToRemove
(
tp
)
return
not
c
:
IsSetCard
(
0x5208
,
0x6208
)
and
c
:
IsAbleToGrave
(
)
end
end
function
cCardno
.
gfilter
(
c
,
tp
)
function
cCardno
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
(
c
:
IsSetCard
(
0x5208
)
or
c
:
IsSetCard
(
0x6208
))
and
c
:
IsAbleToGrave
(
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cCardno
.
rfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
cCardno
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
lp
=
Duel
.
GetLP
(
tp
)
e
:
SetLabel
(
lp
)
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
function
cCardno
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cCardno
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g1
=
Duel
.
GetMatchingGroup
(
cCardno
.
rfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
local
fid
=
c
:
GetFieldID
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
ag
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
local
cg
=
ag
:
Filter
(
Card
.
IsFacedown
,
nil
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
if
cg
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
local
rg
=
ag
:
Filter
(
cCardno
.
rfilter
,
nil
)
e1
:
SetCountLimit
(
1
)
if
Duel
.
Remove
(
rg
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_TEMPORARY
)
>
0
then
local
e2
=
e1
:
Clone
()
rg
:
KeepAlive
()
--自己场上里侧除外
for
tc
in
aux
.
Next
(
rg
)
do
if
Duel
.
Remove
(
g1
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
tc
:
RegisterFlagEffect
(
74561013
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
g1
:
KeepAlive
()
end
e1
:
SetLabelObject
(
g1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetOperation
(
cCardno
.
reop
)
e1
:
SetDescription
(
aux
.
Stringid
(
Cardno
,
3
))
Duel
.
RegisterEffect
(
e1
,
tp
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
end
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
--set lp
e1
:
SetCountLimit
(
1
)
local
lp
=
e
:
GetLabel
()
e1
:
SetLabel
(
fid
)
e2
:
SetLabel
(
lp
)
e1
:
SetLabelObject
(
rg
)
e2
:
SetOperation
(
cCardno
.
slop
)
e1
:
SetOperation
(
cCardno
.
reop
)
Duel
.
RegisterEffect
(
e2
,
tp
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
--send to grave
Duel
.
RegisterEffect
(
e1
,
tp
)
local
g2
=
Duel
.
GetMatchingGroup
(
cCardno
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
end
if
g2
then
Duel
.
SendtoGrave
(
g2
,
REASON_EFFECT
)
end
local
gg
=
ag
:
Filter
(
cCardno
.
gfilter
,
nil
)
--damage
if
gg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
gg
,
REASON_EFFECT
)
end
local
e3
=
Effect
.
CreateEffect
(
c
)
local
lp
=
e
:
GetLabel
()
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetDescription
(
aux
.
Stringid
(
Cardno
,
4
))
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetTargetRange
(
1
,
0
)
e2
:
SetCountLimit
(
1
)
e3
:
SetValue
(
0
)
e2
:
SetLabel
(
lp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
e2
:
SetOperation
(
cCardno
.
slop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetValue
(
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
cCardno
.
slop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lp
=
e
:
GetLabel
()
Duel
.
SetLP
(
tp
,
lp
)
end
function
cCardno
.
refilter
(
c
,
fid
)
return
c
:
GetFlagEffect
(
74561013
)
>
0
and
c
:
GetFlagEffectLabel
(
74561013
)
==
fid
end
function
cCardno
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
sg
=
g
:
Filter
(
cCardno
.
refilter
,
nil
,
e
:
GetLabel
())
if
sg
:
GetCount
()
<
1
then
return
end
for
tc
in
aux
.
Next
(
sg
)
do
Duel
.
ReturnToField
(
tc
)
end
end
end
--battle damage
--battle damage
function
cCardno
.
rdval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
cCardno
.
rdval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
...
@@ -106,28 +132,4 @@ function cCardno.rdval(e,re,val,r,rp,rc)
...
@@ -106,28 +132,4 @@ function cCardno.rdval(e,re,val,r,rp,rc)
else
else
return
val
return
val
end
end
end
--set lp
function
cCardno
.
slop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lp
=
e
:
GetLabel
()
Duel
.
SetLP
(
tp
,
lp
)
end
--return
function
cCardno
.
refilter
(
c
)
--魔陷+非永续非场地+表侧表示
return
(
c
:
IsType
(
TYPE_SPELL
)
or
c
:
IsType
(
TYPE_TRAP
)
)
and
not
(
c
:
IsType
(
TYPE_CONTINUOUS
)
or
c
:
IsType
(
TYPE_FIELD
)
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
cCardno
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
if
g
then
local
tc
=
g
:
GetFirst
()
while
tc
do
if
cCardno
.
refilter
(
tc
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
)
else
Duel
.
ReturnToField
(
tc
)
end
tc
=
g
:
GetNext
()
end
end
end
end
\ No newline at end of file
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