Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
23f3408b
Commit
23f3408b
authored
May 01, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move LabrynthDestroyOp to utility
parent
d0b4d326
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
36 deletions
+19
-36
c32785578.lua
c32785578.lua
+0
-18
c5380979.lua
c5380979.lua
+0
-18
utility.lua
utility.lua
+19
-0
No files found.
c32785578.lua
View file @
23f3408b
...
@@ -11,24 +11,6 @@ function c32785578.initial_effect(c)
...
@@ -11,24 +11,6 @@ function c32785578.initial_effect(c)
e1
:
SetOperation
(
c32785578
.
activate
)
e1
:
SetOperation
(
c32785578
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
aux
.
LabrynthDestroyOp
(
e
,
tp
,
res
)
local
c
=
e
:
GetHandler
()
local
chk
=
not
c
:
IsStatus
(
STATUS_ACT_FROM_HAND
)
and
c
:
IsSetCard
(
0x117e
)
and
c
:
GetType
()
==
TYPE_TRAP
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
local
exc
=
nil
if
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
exc
=
c
end
local
te
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
33407125
)
if
chk
and
te
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
exc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33407125
,
0
))
then
if
res
>
0
then
Duel
.
BreakEffect
()
end
Duel
.
Hint
(
HINT_CARD
,
0
,
33407125
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
exc
)
Duel
.
HintSelection
(
dg
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
te
:
UseCountLimit
(
tp
)
end
end
function
c32785578
.
cfilter
(
c
)
function
c32785578
.
cfilter
(
c
)
return
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsFaceup
()
return
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsFaceup
()
end
end
...
...
c5380979.lua
View file @
23f3408b
...
@@ -24,24 +24,6 @@ function c5380979.initial_effect(c)
...
@@ -24,24 +24,6 @@ function c5380979.initial_effect(c)
e2
:
SetOperation
(
c5380979
.
setop
)
e2
:
SetOperation
(
c5380979
.
setop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
aux
.
LabrynthDestroyOp
(
e
,
tp
,
res
)
local
c
=
e
:
GetHandler
()
local
chk
=
not
c
:
IsStatus
(
STATUS_ACT_FROM_HAND
)
and
c
:
IsSetCard
(
0x117e
)
and
c
:
GetType
()
==
TYPE_TRAP
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
local
exc
=
nil
if
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
exc
=
c
end
local
te
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
33407125
)
if
chk
and
te
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
exc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33407125
,
0
))
then
if
res
>
0
then
Duel
.
BreakEffect
()
end
Duel
.
Hint
(
HINT_CARD
,
0
,
33407125
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
exc
)
Duel
.
HintSelection
(
dg
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
te
:
UseCountLimit
(
tp
)
end
end
function
c5380979
.
spfilter
(
c
,
e
,
tp
)
function
c5380979
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x17e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x17e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
...
...
utility.lua
View file @
23f3408b
...
@@ -2588,6 +2588,25 @@ function Auxiliary.DrytronSpSummonOperation(func)
...
@@ -2588,6 +2588,25 @@ function Auxiliary.DrytronSpSummonOperation(func)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
~=
0
then
func
(
e
,
tp
)
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
~=
0
then
func
(
e
,
tp
)
end
end
end
end
end
--additional destroy effect for the Labrynth field
function
Auxiliary
.
LabrynthDestroyOp
(
e
,
tp
,
res
)
local
c
=
e
:
GetHandler
()
local
chk
=
not
c
:
IsStatus
(
STATUS_ACT_FROM_HAND
)
and
c
:
IsSetCard
(
0x117e
)
and
c
:
GetType
()
==
TYPE_TRAP
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
local
exc
=
nil
if
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
exc
=
c
end
local
te
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
33407125
)
if
chk
and
te
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
exc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33407125
,
0
))
then
if
res
>
0
then
Duel
.
BreakEffect
()
end
Duel
.
Hint
(
HINT_CARD
,
0
,
33407125
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
exc
)
Duel
.
HintSelection
(
dg
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
te
:
UseCountLimit
(
tp
)
end
end
--shortcut for Gizmek cards
--shortcut for Gizmek cards
function
Auxiliary
.
AtkEqualsDef
(
c
)
function
Auxiliary
.
AtkEqualsDef
(
c
)
if
not
c
:
IsType
(
TYPE_MONSTER
)
or
c
:
IsType
(
TYPE_LINK
)
then
return
false
end
if
not
c
:
IsType
(
TYPE_MONSTER
)
or
c
:
IsType
(
TYPE_LINK
)
then
return
false
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