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
3b913937
Commit
3b913937
authored
Feb 03, 2017
by
mercury233
Committed by
DailyShana
Feb 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2fcfdf8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
+27
-10
c40390147.lua
c40390147.lua
+11
-9
c49838105.lua
c49838105.lua
+6
-1
c82734805.lua
c82734805.lua
+5
-0
c89642993.lua
c89642993.lua
+5
-0
No files found.
c40390147.lua
View file @
3b913937
...
...
@@ -22,18 +22,20 @@ function c40390147.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c40390147
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
(
b1
or
b2
)
end
local
opt
=
0
if
b1
and
b2
then
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40390147
,
1
),
aux
.
Stringid
(
40390147
,
2
))
e
:
SetLabel
(
opt
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
opt
+
1
,
opt
+
1
,
REASON_COST
)
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40390147
,
1
),
aux
.
Stringid
(
40390147
,
2
))
elseif
b1
then
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40390147
,
1
))
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
SetLabel
(
0
)
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40390147
,
1
))
else
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40390147
,
2
))
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_COST
)
e
:
SetLabel
(
1
)
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40390147
,
2
))
+
1
end
e
:
SetLabel
(
opt
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
opt
+
1
,
opt
+
1
,
REASON_COST
)
if
opt
==
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
else
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c40390147
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c49838105.lua
View file @
3b913937
...
...
@@ -10,6 +10,7 @@ function c49838105.initial_effect(c)
--attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
49838105
,
0
))
e2
:
SetCategory
(
CATEGORY_DECKDES
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_SZONE
)
...
...
@@ -39,7 +40,11 @@ function c49838105.target1(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
e
:
SetCategory
(
CATEGORY_DECKDES
)
else
e
:
SetLabel
(
0
)
e
:
SetCategory
(
0
)
end
end
function
c49838105
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
...
...
c82734805.lua
View file @
3b913937
...
...
@@ -53,6 +53,11 @@ function c82734805.tg(e,tp,eg,ep,ev,re,r,rp,chk)
con10
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
LOCATION_HAND
)
>
0
end
if
chk
==
0
then
return
con3
or
con5
or
con8
or
con10
end
local
cat
=
0
if
ct
>=
3
or
ct
>=
8
then
cat
=
cat
+
CATEGORY_TOGRAVE
end
if
ct
>=
5
then
cat
=
cat
+
CATEGORY_DECKDES
end
if
ct
>=
10
then
cat
=
cat
+
CATEGORY_HANDES
end
e
:
SetCategory
(
cat
)
end
function
c82734805
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabel
()
...
...
c89642993.lua
View file @
3b913937
...
...
@@ -23,6 +23,11 @@ function c89642993.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
89642993
,
1
),
aux
.
Stringid
(
89642993
,
2
))
e
:
SetLabel
(
op
)
if
op
==
0
then
e
:
SetCategory
(
CATEGORY_DRAW
)
else
e
:
SetCategory
(
CATEGORY_RECOVER
)
end
end
function
c89642993
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabel
()
==
0
then
...
...
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