Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
c6c1f5a5
Commit
c6c1f5a5
authored
Sep 03, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix destroy set
parent
7882a452
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
10 deletions
+17
-10
expansions/script/c1182051.lua
expansions/script/c1182051.lua
+2
-1
expansions/script/c33700185.lua
expansions/script/c33700185.lua
+3
-2
expansions/script/c37564046.lua
expansions/script/c37564046.lua
+2
-1
expansions/script/c37564808.lua
expansions/script/c37564808.lua
+2
-1
expansions/script/c37564905.lua
expansions/script/c37564905.lua
+2
-1
expansions/script/c57300025.lua
expansions/script/c57300025.lua
+3
-2
expansions/script/c57320008.lua
expansions/script/c57320008.lua
+3
-2
No files found.
expansions/script/c1182051.lua
View file @
c6c1f5a5
...
...
@@ -85,7 +85,8 @@ function c1182051.op2(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c1182051
.
tfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
local
rc
=
sg
:
GetFirst
()
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
then
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
then
Duel
.
SpecialSummon
(
rc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
Duel
.
ConfirmCards
(
1
-
tp
,
rc
)
elseif
(
rc
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
rc
:
IsSSetable
()
then
...
...
expansions/script/c33700185.lua
View file @
c6c1f5a5
...
...
@@ -161,7 +161,8 @@ end
function
cm
.
filter
(
c
,
e
,
tp
)
if
not
c
:
IsSetCard
(
0x442
)
or
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
false
end
local
rc
=
c
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
(
not
rc
:
IsLocation
(
LOCATION_EXTRA
)
or
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
)
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
then
return
true
end
if
(
rc
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
...
...
@@ -184,4 +185,4 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
ConfirmCards
(
1
-
tp
,
rc
)
end
end
\ No newline at end of file
end
expansions/script/c37564046.lua
View file @
c6c1f5a5
...
...
@@ -210,7 +210,8 @@ end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
Duel
.
GetFirstTarget
()
if
rc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
~=
0
and
not
rc
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
then
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
(
not
rc
:
IsLocation
(
LOCATION_EXTRA
)
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
rc
)
>
0
)
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90809975
,
3
))
then
...
...
expansions/script/c37564808.lua
View file @
c6c1f5a5
...
...
@@ -76,7 +76,8 @@ end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
Duel
.
GetFirstTarget
()
if
rc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
~=
0
and
not
rc
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
then
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
(
not
rc
:
IsLocation
(
LOCATION_EXTRA
)
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
rc
)
>
0
)
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90809975
,
3
))
then
...
...
expansions/script/c37564905.lua
View file @
c6c1f5a5
...
...
@@ -16,7 +16,8 @@ function cm.initial_effect(c)
local
rc
=
re
:
GetHandler
()
if
not
Duel
.
NegateActivation
(
ev
)
then
return
end
if
rc
:
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
and
not
rc
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
then
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
(
not
rc
:
IsLocation
(
LOCATION_EXTRA
)
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
rc
)
>
0
)
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90809975
,
3
))
then
...
...
expansions/script/c57300025.lua
View file @
c6c1f5a5
...
...
@@ -158,7 +158,8 @@ end
function
c57300025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
Duel
.
GetFirstTarget
()
if
rc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
~=
0
and
not
rc
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
then
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90809975
,
3
))
then
Duel
.
BreakEffect
()
...
...
@@ -188,4 +189,4 @@ function c57300025.disop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
expansions/script/c57320008.lua
View file @
c6c1f5a5
...
...
@@ -37,7 +37,8 @@ end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
Duel
.
GetFirstTarget
()
if
rc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
~=
0
and
not
rc
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
then
if
rc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
if
rc
:
IsType
(
TYPE_MONSTER
)
and
not
rc
:
IsType
(
TYPE_TOKEN
)
and
Duel
.
GetMZoneCount
(
tp
)
>
0
and
rc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90809975
,
3
))
then
Duel
.
BreakEffect
()
...
...
@@ -50,4 +51,4 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
rc
)
end
end
end
\ No newline at end of file
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