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
GuGu
ygopro-THC-cards
Commits
c6e52ecd
Commit
c6e52ecd
authored
Dec 13, 2021
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix c74563015.lua
parent
f6cf5c5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
139 additions
and
120 deletions
+139
-120
script/c74563015.lua
script/c74563015.lua
+139
-120
No files found.
script/c74563015.lua
View file @
c6e52ecd
...
@@ -51,13 +51,7 @@ function c74563015.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -51,13 +51,7 @@ function c74563015.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
c74563015
.
desfilter2
(
c
,
num
)
function
c74563015
.
desfilter2
(
c
,
num
)
if
c
:
IsType
(
TYPE_LINK
)
then
return
c74563015
.
customdef
(
c
)
<=
num
return
num
>
1200
elseif
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsFaceup
()
then
return
num
>
1200
else
return
c
:
IsDefenseBelow
(
num
)
and
c
:
IsFaceup
()
end
end
end
function
c74563015
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74563015
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -81,13 +75,38 @@ function c74563015.gselect(g,num)
...
@@ -81,13 +75,38 @@ function c74563015.gselect(g,num)
end
end
return
def
<=
num
return
def
<=
num
end
end
function
c74563015
.
customdef
(
c
)
if
c
:
IsType
(
TYPE_LINK
|
TYPE_SPELL
|
TYPE_TRAP
)
and
c
:
IsFaceup
()
then
return
1200
else
return
c
:
GetDefense
()
end
end
function
c74563015
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74563015
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
num
=
e
:
GetLabel
()
local
num
=
e
:
GetLabel
()
local
g
=
Duel
.
GetMatchingGroup
(
c74563015
.
desfilter2
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
nil
,
num
)
local
g
=
Duel
.
GetMatchingGroup
(
c74563015
.
desfilter2
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
nil
,
num
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Group
.
CreateGroup
()
local
dg
=
g
:
SelectSubGroup
(
tp
,
c74563015
.
gselect
,
false
,
1
,
#
g
,
num
)
while
true
do
g
=
Duel
.
GetMatchingGroup
(
c74563015
.
desfilter2
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
dg
,
num
)
if
#
g
==
0
then
break
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
sc
=
g
:
SelectUnselect
(
dg
,
tp
,
#
dg
>
0
,
#
dg
>
0
,
1
,
99
)
if
not
sc
then
break
elseif
g
:
IsContains
(
sc
)
then
g
:
RemoveCard
(
sc
)
dg
:
AddCard
(
sc
)
num
=
num
-
c74563015
.
customdef
(
sc
)
else
dg
:
RemoveCard
(
sc
)
g
:
AddCard
(
sc
)
num
=
num
+
c74563015
.
customdef
(
sc
)
end
end
local
tc
=
dg
:
GetFirst
()
local
tc
=
dg
:
GetFirst
()
while
tc
do
while
tc
do
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
...
...
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