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
dcd58a1d
Commit
dcd58a1d
authored
Aug 22, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
19e429d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
c90020780.lua
c90020780.lua
+17
-16
No files found.
c90020780.lua
View file @
dcd58a1d
...
@@ -8,9 +8,9 @@ function c90020780.initial_effect(c)
...
@@ -8,9 +8,9 @@ function c90020780.initial_effect(c)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
90020780
)
e1
:
SetCountLimit
(
1
,
90020780
)
e1
:
SetCondition
(
c90020780
.
d
conditi
on
)
e1
:
SetCondition
(
c90020780
.
d
rc
on
)
e1
:
SetTarget
(
c90020780
.
d
target
)
e1
:
SetTarget
(
c90020780
.
d
rtg
)
e1
:
SetOperation
(
c90020780
.
d
operation
)
e1
:
SetOperation
(
c90020780
.
d
rop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--banished
--banished
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -19,26 +19,26 @@ function c90020780.initial_effect(c)
...
@@ -19,26 +19,26 @@ function c90020780.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetCountLimit
(
1
,
90020781
)
e2
:
SetCountLimit
(
1
,
90020781
)
e2
:
SetCondition
(
c90020780
.
spcon
dition
)
e2
:
SetCondition
(
c90020780
.
spcon
)
e2
:
SetTarget
(
c90020780
.
spt
arget
)
e2
:
SetTarget
(
c90020780
.
spt
g
)
e2
:
SetOperation
(
c90020780
.
spop
eration
)
e2
:
SetOperation
(
c90020780
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c90020780
.
d
filter
(
c
,
tp
)
function
c90020780
.
c
filter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsRace
(
RACE_ZOMBIE
)
return
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsRace
(
RACE_ZOMBIE
)
end
end
function
c90020780
.
d
conditi
on
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90020780
.
d
rc
on
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsContains
(
e
:
GetHandler
())
then
return
false
end
if
eg
:
IsContains
(
e
:
GetHandler
())
then
return
false
end
return
eg
:
IsExists
(
c90020780
.
d
filter
,
1
,
e
:
GetHandler
(),
tp
)
return
eg
:
IsExists
(
c90020780
.
c
filter
,
1
,
e
:
GetHandler
(),
tp
)
end
end
function
c90020780
.
d
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90020780
.
d
rtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
end
end
function
c90020780
.
d
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90020780
.
d
rop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
then
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
...
@@ -46,16 +46,17 @@ function c90020780.doperation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,16 +46,17 @@ function c90020780.doperation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
end
end
function
c90020780
.
spcondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90020780
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_GRAVE
)
and
(
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
or
(
e
:
GetHandler
():
IsReason
(
REASON_COST
)
and
re
:
IsHasType
(
~
EFFECT_TYPE_FIELD
)))
return
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
(
c
:
IsReason
(
REASON_EFFECT
)
or
c
:
IsReason
(
REASON_COST
)
and
re
:
IsHasType
(
0x7e0
))
end
end
function
c90020780
.
spt
arget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90020780
.
spt
g
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c90020780
.
spop
eration
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90020780
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
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