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
8fb65eca
Commit
8fb65eca
authored
Nov 22, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
400c8b92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
c5489987.lua
c5489987.lua
+12
-8
c95943058.lua
c95943058.lua
+2
-8
No files found.
c5489987.lua
View file @
8fb65eca
...
...
@@ -35,7 +35,7 @@ function c5489987.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c5489987
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c5489987
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
~=
0
then
local
c
=
e
:
GetHandler
()
...
...
@@ -44,14 +44,18 @@ function c5489987.drop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
BreakEffect
()
if
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsSetCard
(
0xe6
)
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
c
:
CompleteProcedure
()
elseif
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
c
:
CompleteProcedure
()
elseif
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
end
end
else
g
:
AddCard
(
c
)
if
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
Duel
.
ShuffleHand
(
tp
)
...
...
@@ -70,7 +74,7 @@ function c5489987.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c5489987
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5489987
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c95943058.lua
View file @
8fb65eca
...
...
@@ -53,17 +53,11 @@ function c95943058.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCondition
(
c95943058
.
spcon
)
e2
:
SetTarget
(
c95943058
.
sptg
)
e2
:
SetOperation
(
c95943058
.
spop
)
e2
:
SetLabel
(
0
)
e2
:
SetLabel
(
Duel
.
GetTurnCount
(
tp
)
+
2
)
c
:
RegisterEffect
(
e2
)
end
function
c95943058
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
~=
tp
then
return
end
local
ct
=
e
:
GetLabel
()
if
ct
==
0
then
e
:
SetLabel
(
Duel
.
GetTurnCount
())
return
false
end
return
ct
~=
Duel
.
GetTurnCount
()
return
Duel
.
GetTurnPlayer
()
==
tp
and
e
:
GetLabel
()
==
Duel
.
GetTurnCount
(
tp
)
end
function
c95943058
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
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