Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
nanahira
ygopro-scripts
Commits
1040abfa
Commit
1040abfa
authored
Nov 29, 2019
by
nekrozar
Committed by
GitHub
Nov 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix&update remove (#1250)
parent
56b1e8aa
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
68 additions
and
75 deletions
+68
-75
c11961740.lua
c11961740.lua
+2
-2
c15256925.lua
c15256925.lua
+3
-6
c15693423.lua
c15693423.lua
+2
-5
c1735088.lua
c1735088.lua
+1
-1
c18658572.lua
c18658572.lua
+1
-1
c29432790.lua
c29432790.lua
+2
-5
c32013448.lua
c32013448.lua
+2
-2
c32999573.lua
c32999573.lua
+2
-2
c35261759.lua
c35261759.lua
+1
-1
c36970611.lua
c36970611.lua
+5
-8
c40080312.lua
c40080312.lua
+2
-2
c40555959.lua
c40555959.lua
+3
-3
c43175858.lua
c43175858.lua
+2
-2
c45148985.lua
c45148985.lua
+10
-1
c45221020.lua
c45221020.lua
+1
-1
c47870325.lua
c47870325.lua
+1
-1
c49238328.lua
c49238328.lua
+1
-1
c49587034.lua
c49587034.lua
+1
-1
c56256517.lua
c56256517.lua
+1
-1
c58297729.lua
c58297729.lua
+1
-2
c63845230.lua
c63845230.lua
+3
-6
c71197066.lua
c71197066.lua
+3
-3
c72283691.lua
c72283691.lua
+1
-1
c73414375.lua
c73414375.lua
+2
-2
c77498348.lua
c77498348.lua
+2
-2
c81223446.lua
c81223446.lua
+1
-1
c82257940.lua
c82257940.lua
+4
-4
c84640866.lua
c84640866.lua
+1
-1
c90384300.lua
c90384300.lua
+1
-1
c94446564.lua
c94446564.lua
+1
-1
c95474755.lua
c95474755.lua
+5
-5
No files found.
c11961740.lua
View file @
1040abfa
...
...
@@ -10,14 +10,14 @@ function c11961740.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c11961740
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c11961740
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
~=
0
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
tc
:
RegisterFlagEffect
(
11961740
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
...
...
c15256925.lua
View file @
1040abfa
...
...
@@ -28,17 +28,14 @@ end
function
c15256925
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c15256925
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c15256925
.
rmfilter
(
c
)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c15256925
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c15256925
.
rmfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
()
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c15256925
.
rmfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
()
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
(),
tp
,
POS_FACEDOWN
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
(),
tp
,
POS_FACEDOWN
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
c15256925
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15256925
.
rmfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
aux
.
ExceptThisCard
(
e
)
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
aux
.
ExceptThisCard
(
e
),
tp
,
POS_FACEDOWN
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
...
...
c15693423.lua
View file @
1040abfa
...
...
@@ -20,15 +20,12 @@ end
function
c15693423
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
end
function
c15693423
.
rmfilter
(
c
,
p
)
return
Duel
.
IsPlayerCanRemove
(
p
,
c
)
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c15693423
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
g
:
GetCount
()
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
ct
=
ct
-
1
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanRemove
(
1
-
tp
)
and
ct
>
0
and
g
:
IsExists
(
c15693423
.
rmfilter
,
1
,
nil
,
1
-
tp
)
end
and
ct
>
0
and
g
:
IsExists
(
Card
.
IsAbleToRemove
,
1
,
nil
,
1
-
tp
,
POS_FACEDOWN
,
REASON_RULE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
ct
,
0
,
0
)
end
function
c15693423
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -37,7 +34,7 @@ function c15693423.activate(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
g
:
GetCount
()
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
if
ct
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
FilterSelect
(
1
-
tp
,
c15693423
.
rmfilter
,
ct
,
ct
,
nil
,
1
-
tp
)
local
sg
=
g
:
FilterSelect
(
1
-
tp
,
Card
.
IsAbleToRemove
,
ct
,
ct
,
nil
,
1
-
tp
,
POS_FACEDOWN
,
REASON_RULE
)
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_RULE
)
end
end
...
...
c1735088.lua
View file @
1040abfa
...
...
@@ -60,7 +60,7 @@ function c1735088.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
end
function
c1735088
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x58
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x58
)
and
c
:
IsAbleToRemoveAsCost
(
POS_FACEDOWN
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c1735088
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
function
c1735088
.
spfilter
(
c
,
e
,
tp
,
code
)
...
...
c18658572.lua
View file @
1040abfa
...
...
@@ -26,7 +26,7 @@ function c18658572.cfop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetMinGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
MoveSequence
(
tc
,
0
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
if
tc
:
IsAbleToRemove
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
18658572
,
1
))
then
if
tc
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
18658572
,
1
))
then
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
...
...
c29432790.lua
View file @
1040abfa
...
...
@@ -38,11 +38,8 @@ end
function
c29432790
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
89631139
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c29432790
.
rmfilter
(
c
)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c29432790
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c29432790
.
rmfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
,
tp
,
POS_FACEDOWN
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29432790
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
g
:
GetCount
()
>
0
and
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
...
...
@@ -50,7 +47,7 @@ function c29432790.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c29432790
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c29432790
.
rmfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
,
tp
,
POS_FACEDOWN
)
if
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
>
0
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
...
...
c32013448.lua
View file @
1040abfa
...
...
@@ -75,11 +75,11 @@ function c32013448.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c32013448
.
rmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
end
function
c32013448
.
rmop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
,
tp
,
POS_FACEDOWN
)
if
g
:
GetCount
()
==
0
then
return
end
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
local
tc
=
sg
:
GetFirst
()
...
...
c32999573.lua
View file @
1040abfa
...
...
@@ -20,11 +20,11 @@ function c32999573.rcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetFlagEffect
(
32999573
+
ep
)
==
0
and
bit
.
band
(
r
,
REASON_COST
)
~=
0
and
re
:
IsHasType
(
0x7e0
)
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
re
:
GetHandler
():
GetOverlayCount
()
>=
ev
-
1
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
end
function
c32999573
.
rop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
32999573
+
ep
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
return
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_COST
)
end
c35261759.lua
View file @
1040abfa
...
...
@@ -14,7 +14,7 @@ function c35261759.initial_effect(c)
end
function
c35261759
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
10
)
if
chk
==
0
then
return
g
:
FilterCount
(
Card
.
IsAbleToRemoveAsCost
,
nil
)
==
10
if
chk
==
0
then
return
g
:
FilterCount
(
Card
.
IsAbleToRemoveAsCost
,
nil
,
POS_FACEDOWN
)
==
10
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
12
end
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_COST
)
...
...
c36970611.lua
View file @
1040abfa
...
...
@@ -32,24 +32,21 @@ function c36970611.initial_effect(c)
e3
:
SetOperation
(
c36970611
.
thop
)
c
:
RegisterEffect
(
e3
)
end
function
c36970611
.
rmfilter
(
c
)
return
c
:
IsAbleToRemove
()
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c36970611
.
cfilter
(
c
)
function
c36970611
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xc1
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingTarget
(
c36970611
.
rmfilter
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
,
tp
,
POS_FACEDOWN
)
end
function
c36970611
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)