Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
0ed33303
Commit
0ed33303
authored
Jul 14, 2023
by
songtongtong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.mycard.moe:alstroemeria-silentlove/ygopro-222DIY-cards
parents
ff39b403
93d7a338
Pipeline
#22670
passed with stages
in 27 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
expansions/script/c33330177.lua
expansions/script/c33330177.lua
+7
-3
No files found.
expansions/script/c33330177.lua
View file @
0ed33303
--审判之剑
local
m
=
33330177
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -19,9 +18,14 @@ end
function
cm
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsAbleToRemove
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
tp
,
LOCATION_HAND
,
0
,
nil
)
Group
.
Merge
(
g
,
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
cm
.
damfilter
(
c
)
...
...
@@ -47,7 +51,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
IsExistingMatchingCard
(
cm
.
damfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
Duel
.
BreakEffect
()
local
tg
=
Duel
.
GetMatchingGroup
(
cm
.
damfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
dam
=
tg
:
GetSum
(
Card
.
GetAttack
)
local
dam
=
tg
:
GetSum
(
Card
.
GetAttack
)
+
tg
:
GetSum
(
Card
.
GetDefense
)
Duel
.
Damage
(
1
-
tp
,
dam
*
2
,
REASON_EFFECT
)
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