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
c6bbdc78
Commit
c6bbdc78
authored
Jul 28, 2022
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert 74563610
parent
466cf721
Pipeline
#15012
passed with stage
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
script/c74563610.lua
script/c74563610.lua
+7
-15
No files found.
script/c74563610.lua
View file @
c6bbdc78
...
...
@@ -25,11 +25,11 @@ function c74563610.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
nil
,
REASON_RETURN
+
REASON_COST
)
end
function
c74563610
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_
MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_
MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_
ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_
ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
)
end
function
c74563610
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_
MZONE
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_
ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
@@ -41,8 +41,8 @@ function c74563610.cost1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
sel
=
0
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
2
,
nil
,
e
:
GetHandler
())
then
sel
=
sel
+
1
end
if
Duel
.
CheckLPCost
(
tp
,
366
0
)
or
(
Duel
.
CheckLPCost
(
tp
,
666
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
74563666
))
then
sel
=
sel
+
2
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
2
,
e
:
GetHandler
())
then
sel
=
sel
+
1
end
if
Duel
.
CheckLPCost
(
tp
,
366
6
)
or
(
Duel
.
CheckLPCost
(
tp
,
666
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
74563666
))
then
sel
=
sel
+
2
end
e
:
SetLabel
(
sel
)
return
sel
~=
0
end
...
...
@@ -69,22 +69,14 @@ function c74563610.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
count
=
sg
:
GetCount
()
local
count1
=
0
if
count
%
3
~=
0
then
count1
=
(
count
//
3
+
1
)
*
2
else
count1
=
count
//
3
*
2
end
count1
=
math.ceil
(
count
/
3
*
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
count1
,
0
,
0
)
end
function
c74563610
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
count
=
sg
:
GetCount
()
local
count1
=
0
if
count
%
3
~=
0
then
count1
=
(
count
//
3
+
1
)
*
2
else
count1
=
count
//
3
*
2
end
count1
=
math.ceil
(
count
/
3
*
2
)
local
sg1
=
sg
:
RandomSelect
(
1
-
tp
,
count1
)
Duel
.
Destroy
(
sg1
,
REASON_EFFECT
)
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