Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Amiya
pre-release-database-cdb
Commits
40e66034
Commit
40e66034
authored
Oct 28, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c6165da7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
script/c101203045.lua
script/c101203045.lua
+5
-7
script/c101203056.lua
script/c101203056.lua
+1
-6
No files found.
script/c101203045.lua
View file @
40e66034
...
...
@@ -45,15 +45,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
local
atk
=
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
):
GetSum
(
Card
.
GetBaseAttack
)
if
atk
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
end
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
and
e
:
GetHandler
():
GetOverlayGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_XYZ
):
GetClassCount
(
Card
.
GetCode
)
>=
3
then
local
dg
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
)
local
atk
=
0
for
c
in
aux
.
Next
(
dg
)
do
atk
=
atk
+
c
:
GetBaseAttack
()
end
local
atk
=
dg
:
GetSum
(
Card
.
GetBaseAttack
)
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
...
...
@@ -61,7 +60,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
filter
(
c
)
return
c
:
IsSetCard
(
0xba
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0xba
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsForbidden
()
end
function
s
.
copycost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
3
,
REASON_COST
)
end
...
...
@@ -70,9 +69,8 @@ end
function
s
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
s
.
copyop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c101203056.lua
View file @
40e66034
...
...
@@ -21,18 +21,13 @@ function s.filter1(c,e)
return
c
:
GetRank
()
>
0
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xba
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
s
.
filter2
(
c
,
e
,
tp
,
mg
)
local
rk
=
0
for
c
in
aux
.
Next
(
mg
)
do
rk
=
rk
+
c
:
GetRank
()
end
local
rk
=
mg
:
GetSum
(
Card
.
GetRank
)
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0xba
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
function
s
.
fselect
(
g
,
tp
,
e
)
return
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_MZONE
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
and
s
.
filter1
(
chkc
,
e
,
tp
)
end
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
filter1
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
chkc
then
return
false
end
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
filter1
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
)
if
chk
==
0
then
return
rg
:
CheckSubGroup
(
s
.
fselect
,
2
,
99
,
tp
,
e
)
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