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
八宫一月
ygopro-scripts
Commits
239d1e34
Commit
239d1e34
authored
Jul 23, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cafcf9ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
c43994202.lua
c43994202.lua
+9
-9
c4478086.lua
c4478086.lua
+2
-2
No files found.
c43994202.lua
View file @
239d1e34
...
@@ -32,41 +32,41 @@ function c43994202.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,41 +32,41 @@ function c43994202.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c43994202
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43994202
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c43994202
.
filter
,
tp
,
LOCATION_DECK
,
1
,
1
,
nil
,
tp
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c43994202
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g1
:
GetCount
()
<=
0
then
return
end
if
g1
:
GetCount
()
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c43994202
.
filter2
,
tp
,
LOCATION_DECK
,
2
,
2
,
g1
,
g1
:
GetFirst
():
GetCode
())
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c43994202
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
2
,
2
,
g1
,
g1
:
GetFirst
():
GetCode
())
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
Duel
.
SendtoHand
(
g1
,
nil
,
REASON_EFFECT
)
>
0
then
if
Duel
.
SendtoHand
(
g1
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
if
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
if
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
local
tc
=
sg
:
GetFirst
()
local
code
=
g1
:
GetFirst
():
GetCode
()
local
e0
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e0
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e0
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e0
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetValue
(
c43994202
.
aclimit
)
e0
:
SetValue
(
c43994202
.
aclimit
)
e0
:
SetLabel
Object
(
tc
)
e0
:
SetLabel
(
code
)
e0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e0
,
tp
)
Duel
.
RegisterEffect
(
e0
,
tp
)
local
e1
=
e0
:
Clone
()
local
e1
=
e0
:
Clone
()
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetTarget
(
c43994202
.
splimit
)
e1
:
SetTarget
(
c43994202
.
splimit
)
e1
:
SetValue
(
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SET
)
e2
:
SetCode
(
EFFECT_CANNOT_SET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e1
:
Clone
()
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
Duel
.
RegisterEffect
(
e3
3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
end
end
function
c43994202
.
aclimit
(
e
,
re
,
tp
)
function
c43994202
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
end
function
c43994202
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c43994202
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
local
tc
=
e
:
GetLabelObject
()
return
c
:
IsCode
(
e
:
GetLabel
())
return
not
c
:
IsCode
(
tc
:
GetCode
())
end
end
c4478086.lua
View file @
239d1e34
...
@@ -55,7 +55,7 @@ function c4478086.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c4478086.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c4478086
.
cfilter
,
1
,
nil
,
lg
)
return
eg
:
IsExists
(
c4478086
.
cfilter
,
1
,
nil
,
lg
)
end
end
function
c4478086
.
filter
(
c
,
e
,
tp
)
function
c4478086
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENSE
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c4478086
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c4478086
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c4478086
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c4478086
.
filter
(
chkc
,
e
,
tp
)
end
...
@@ -68,7 +68,7 @@ end
...
@@ -68,7 +68,7 @@ end
function
c4478086
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4478086
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENSE
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
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