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
ac3349ea
Commit
ac3349ea
authored
Jul 16, 2022
by
wyykak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 25349
Signed-off-by:
wyykak
<
wyy_1414@126.com
>
parent
164a2b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
script/c25349.lua
script/c25349.lua
+4
-4
No files found.
script/c25349.lua
View file @
ac3349ea
...
@@ -80,7 +80,7 @@ function c25349.atkfilter(c)
...
@@ -80,7 +80,7 @@ function c25349.atkfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x778
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x778
)
end
end
function
c25349
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25349
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
,
nil
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
end
end
function
c25349
.
filter
(
c
)
function
c25349
.
filter
(
c
)
...
@@ -88,7 +88,7 @@ function c25349.filter(c)
...
@@ -88,7 +88,7 @@ function c25349.filter(c)
end
end
function
c25349
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25349
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
and
Duel
.
IsExistingMatchingCard
(
c25349
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
25349
,
1
))
then
if
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
and
Duel
.
IsExistingMatchingCard
(
c25349
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
25349
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25349
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c25349
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
...
@@ -102,7 +102,7 @@ function c25349.gfilter(c,tp)
...
@@ -102,7 +102,7 @@ function c25349.gfilter(c,tp)
return
c
:
GetPreviousControler
()
==
tp
return
c
:
GetPreviousControler
()
==
tp
end
end
function
c25349
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25349
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
,
nil
)
return
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
and
Duel
.
GetTurnPlayer
()
==
tp
return
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
and
Duel
.
GetTurnPlayer
()
==
tp
and
eg
:
IsExists
(
c25349
.
gfilter
,
1
,
nil
,
tp
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
and
eg
:
IsExists
(
c25349
.
gfilter
,
1
,
nil
,
tp
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
end
end
...
@@ -157,7 +157,7 @@ function c25349.kfilter(c,tp)
...
@@ -157,7 +157,7 @@ function c25349.kfilter(c,tp)
return
c
:
GetSummonPlayer
()
==
1
-
tp
and
c
:
IsControlerCanBeChanged
()
return
c
:
GetSummonPlayer
()
==
1
-
tp
and
c
:
IsControlerCanBeChanged
()
end
end
function
c25349
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25349
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c25349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
,
nil
)
local
fg
=
eg
:
Filter
(
c25349
.
kfilter
,
nil
,
tp
)
local
fg
=
eg
:
Filter
(
c25349
.
kfilter
,
nil
,
tp
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
and
fg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
fg
:
GetCount
()
-
1
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
e
:
GetLabel
()
and
fg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
fg
:
GetCount
()
-
1
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