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
c78b0b7d
Commit
c78b0b7d
authored
Nov 09, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
dc3d2edc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
32 deletions
+35
-32
c56562619.lua
c56562619.lua
+31
-30
c66698383.lua
c66698383.lua
+1
-1
c73271204.lua
c73271204.lua
+1
-0
c77133792.lua
c77133792.lua
+2
-1
No files found.
c56562619.lua
View file @
c78b0b7d
...
...
@@ -31,10 +31,22 @@ function c56562619.initial_effect(c)
e3
:
SetTarget
(
c56562619
.
sptg
)
e3
:
SetOperation
(
c56562619
.
spop
)
c
:
RegisterEffect
(
e3
)
--clear
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetOperation
(
c56562619
.
clearop
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e5
)
local
ng
=
Group
.
CreateGroup
()
ng
:
KeepAlive
()
e2
:
SetLabelObject
(
ng
)
e3
:
SetLabelObject
(
ng
)
e2
:
SetLabelObject
(
e3
)
e4
:
SetLabelObject
(
ng
)
e5
:
SetLabelObject
(
ng
)
end
function
c56562619
.
splimit
(
e
,
se
,
sp
,
st
)
return
(
se
:
IsActiveType
(
TYPE_MONSTER
)
and
se
:
GetHandler
():
IsSetCard
(
0x2b
))
or
se
:
GetHandler
():
IsSetCard
(
0x61
)
...
...
@@ -69,28 +81,17 @@ function c56562619.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c56562619
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
tc
:
RegisterFlagEffect
(
56562619
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
e
:
GetLabelObject
():
SetLabel
(
1
)
if
c
:
GetFlagEffect
(
56562619
)
==
0
then
c
:
RegisterFlagEffect
(
56562619
,
RESET_EVENT
+
0x1680000
,
0
,
0
)
e
:
GetLabelObject
():
GetLabelObject
():
Clear
()
end
e
:
GetLabelObject
():
GetLabelObject
():
AddCard
(
tc
)
e
:
GetLabelObject
():
AddCard
(
tc
)
end
end
function
c56562619
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rg
=
e
:
GetLabelObject
()
local
act
=
e
:
GetLabel
()
e
:
SetLabel
(
0
)
if
act
==
1
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetLocation
()
~=
LOCATION_DECK
and
c
:
GetFlagEffect
(
56562619
)
~=
0
then
return
true
else
rg
:
Clear
()
return
false
end
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)
end
function
c56562619
.
spfilter
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
56562619
)
~=
0
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
1
-
tp
))
end
function
c56562619
.
spfilter1
(
c
,
e
,
tp
)
...
...
@@ -100,12 +101,9 @@ function c56562619.spfilter2(c,e,tp)
return
c
:
GetFlagEffect
(
56562619
)
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
1
-
tp
)
and
c
:
GetOwner
()
==
1
-
tp
end
function
c56562619
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
e
:
GetLabelObject
()
if
chk
==
0
then
if
rg
:
IsExists
(
c56562619
.
spfilter
,
1
,
nil
,
e
,
tp
)
then
return
true
else
rg
:
Clear
()
return
false
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
rg
,
rg
:
GetCount
(),
0
,
0
)
if
chk
==
0
then
return
true
end
local
g
=
e
:
GetLabelObject
():
Filter
(
c56562619
.
spfilter
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c56562619
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
...
...
@@ -140,10 +138,10 @@ function c56562619.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg1
=
sg1
:
Select
(
tp
,
ft1
,
ft1
,
nil
)
end
local
s
g
=
sg1
:
GetFirst
()
while
s
g
do
Duel
.
SpecialSummonStep
(
s
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
s
g
=
sg1
:
GetNext
()
local
s
c
=
sg1
:
GetFirst
()
while
s
c
do
Duel
.
SpecialSummonStep
(
s
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
s
c
=
sg1
:
GetNext
()
end
end
if
gc2
>
0
and
ft2
>
0
then
...
...
@@ -151,12 +149,15 @@ function c56562619.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
sg2
=
sg2
:
Select
(
tp
,
ft2
,
ft2
,
nil
)
end
local
s
g
=
sg2
:
GetFirst
()
while
s
g
do
Duel
.
SpecialSummonStep
(
s
g
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
s
g
=
sg2
:
GetNext
()
local
s
c
=
sg2
:
GetFirst
()
while
s
c
do
Duel
.
SpecialSummonStep
(
s
c
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
s
c
=
sg2
:
GetNext
()
end
end
Duel
.
SpecialSummonComplete
()
rg
:
Clear
()
end
function
c56562619
.
clearop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
Clear
()
end
c66698383.lua
View file @
c78b0b7d
...
...
@@ -59,7 +59,7 @@ end
function
c66698383
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToHand
()
end
function
c66698383
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66698383
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c66698383
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c66698383
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c73271204.lua
View file @
c78b0b7d
...
...
@@ -15,6 +15,7 @@ function c73271204.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
73271204
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c73271204
.
milcon
)
e2
:
SetTarget
(
c73271204
.
miltg
)
...
...
c77133792.lua
View file @
c78b0b7d
...
...
@@ -47,7 +47,8 @@ function c77133792.spfilter(c,e,tp)
end
function
c77133792
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c77133792
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c77133792
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c77133792
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77133792
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
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