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
Show 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,81 +53,83 @@ function cCardno.handcon(e)
...
@@ -53,81 +53,83 @@ function cCardno.handcon(e)
return
Duel
.
GetTurnCount
()
==
1
return
Duel
.
GetTurnCount
()
==
1
end
end
--Activate
--Activate
function
cCardno
.
rfilter
(
c
)
return
c
:
IsSetCard
(
0x5208
,
0x6208
)
and
c
:
IsAbleToRemove
()
end
function
cCardno
.
gfilter
(
c
)
return
not
c
:
IsSetCard
(
0x5208
,
0x6208
)
and
c
:
IsAbleToGrave
()
end
function
cCardno
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cCardno
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
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
)
local
lp
=
Duel
.
GetLP
(
tp
)
e
:
SetLabel
(
lp
)
e
:
SetLabel
(
lp
)
Duel
.
SetChainLimit
(
aux
.
FALSE
)
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
end
function
cCardno
.
rfilter
(
c
,
tp
)
return
(
c
:
IsSetCard
(
0x5208
)
or
c
:
IsSetCard
(
0x6208
))
and
c
:
IsAbleToRemove
(
tp
)
end
function
cCardno
.
gfilter
(
c
,
tp
)
return
not
(
c
:
IsSetCard
(
0x5208
)
or
c
:
IsSetCard
(
0x6208
))
and
c
:
IsAbleToGrave
(
tp
)
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
ag
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
local
cg
=
ag
:
Filter
(
Card
.
IsFacedown
,
nil
)
if
cg
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
local
rg
=
ag
:
Filter
(
cCardno
.
rfilter
,
nil
)
if
Duel
.
Remove
(
rg
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_TEMPORARY
)
>
0
then
rg
:
KeepAlive
()
for
tc
in
aux
.
Next
(
rg
)
do
tc
:
RegisterFlagEffect
(
74561013
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
Cardno
,
3
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
local
e2
=
e1
:
Clone
()
e1
:
SetLabel
(
fid
)
--自己场上里侧除外
e1
:
SetLabelObject
(
rg
)
if
Duel
.
Remove
(
g1
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_TEMPORARY
)
~=
0
then
g1
:
KeepAlive
()
e1
:
SetLabelObject
(
g1
)
e1
:
SetOperation
(
cCardno
.
reop
)
e1
:
SetOperation
(
cCardno
.
reop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
--set lp
local
gg
=
ag
:
Filter
(
cCardno
.
gfilter
,
nil
)
local
lp
=
e
:
GetLabel
()
if
gg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
gg
,
REASON_EFFECT
)
end
local
lp
=
e
:
GetLabel
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
Cardno
,
4
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
lp
)
e2
:
SetLabel
(
lp
)
e2
:
SetOperation
(
cCardno
.
slop
)
e2
:
SetOperation
(
cCardno
.
slop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--send to grave
local
g2
=
Duel
.
GetMatchingGroup
(
cCardno
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
if
g2
then
Duel
.
SendtoGrave
(
g2
,
REASON_EFFECT
)
end
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetValue
(
0
)
e3
:
SetValue
(
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
--battle damage
function
cCardno
.
rdval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
return
val
/
2
else
return
val
end
end
--set lp
function
cCardno
.
slop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cCardno
.
slop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lp
=
e
:
GetLabel
()
local
lp
=
e
:
GetLabel
()
Duel
.
SetLP
(
tp
,
lp
)
Duel
.
SetLP
(
tp
,
lp
)
end
end
--return
function
cCardno
.
refilter
(
c
,
fid
)
function
cCardno
.
refilter
(
c
)
return
c
:
GetFlagEffect
(
74561013
)
>
0
--魔陷+非永续非场地+表侧表示
and
c
:
GetFlagEffectLabel
(
74561013
)
==
fid
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
end
function
cCardno
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cCardno
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
if
g
then
local
sg
=
g
:
Filter
(
cCardno
.
refilter
,
nil
,
e
:
GetLabel
())
local
tc
=
g
:
GetFirst
()
if
sg
:
GetCount
()
<
1
then
return
end
while
tc
do
for
tc
in
aux
.
Next
(
sg
)
do
if
cCardno
.
refilter
(
tc
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
)
else
Duel
.
ReturnToField
(
tc
)
Duel
.
ReturnToField
(
tc
)
end
end
tc
=
g
:
GetNext
()
end
end
--battle damage
function
cCardno
.
rdval
(
e
,
re
,
val
,
r
,
rp
,
rc
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
return
val
/
2
else
return
val
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