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
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
MyCard
ygopro-scripts
Commits
65a3f296
Commit
65a3f296
authored
Nov 13, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ccf05f7e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
c11270236.lua
c11270236.lua
+5
-4
c40636712.lua
c40636712.lua
+3
-3
c51570882.lua
c51570882.lua
+2
-2
c53819028.lua
c53819028.lua
+1
-1
c99913726.lua
c99913726.lua
+1
-1
No files found.
c11270236.lua
View file @
65a3f296
...
...
@@ -58,10 +58,11 @@ end
function
c11270236
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
local
g
=
Duel
.
GetMatchingGroup
(
c11270236
.
rmfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttribute
())
if
tc
:
IsFaceup
()
and
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
local
tg
=
Group
.
FromCards
(
tc
)
if
tc
:
IsFaceup
()
then
local
g
=
Duel
.
GetMatchingGroup
(
c11270236
.
rmfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
tc
:
GetAttribute
())
tg
:
Merge
(
g
)
end
Duel
.
Remove
(
t
c
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
t
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
c40636712.lua
View file @
65a3f296
...
...
@@ -44,14 +44,14 @@ function c40636712.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c40636712
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
function
c40636712
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
end
end
...
...
c51570882.lua
View file @
65a3f296
...
...
@@ -83,14 +83,14 @@ function c51570882.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c51570882
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
dg
=
Duel
.
Get
MatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
dg
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
function
c51570882
.
rmfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsLevelAbove
(
8
)
and
c
:
IsAbleToRemove
()
end
function
c51570882
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
dg
=
Duel
.
Get
MatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
dg
=
Duel
.
Get
FieldGroup
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
==
0
then
return
end
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
c51570882
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
)
...
...
c53819028.lua
View file @
65a3f296
...
...
@@ -62,7 +62,7 @@ end
function
c53819028
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
if
tc
==
e
:
GetHandler
()
then
tc
=
Duel
.
GetAttackTarget
()
end
if
tc
:
IsRelateToBattle
()
then
if
tc
:
IsRelateToBattle
()
and
tc
:
IsControler
(
1
-
tp
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
...
...
c99913726.lua
View file @
65a3f296
...
...
@@ -3,7 +3,7 @@ function c99913726.initial_effect(c)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
99913726
)
...
...
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