Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
8890497e
Commit
8890497e
authored
Dec 18, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
validate Duel.CheckTribute
parent
dd4eb563
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
c10000080.lua
c10000080.lua
+2
-3
c96570609.lua
c96570609.lua
+1
-7
No files found.
c10000080.lua
View file @
8890497e
...
@@ -68,7 +68,7 @@ function c10000080.initial_effect(c)
...
@@ -68,7 +68,7 @@ function c10000080.initial_effect(c)
end
end
function
c10000080
.
ttcon1
(
e
,
c
)
function
c10000080
.
ttcon1
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
)
>=
3
return
Duel
.
CheckTribute
(
c
,
3
)
end
end
function
c10000080
.
ttop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c10000080
.
ttop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
local
g
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
...
@@ -78,8 +78,7 @@ end
...
@@ -78,8 +78,7 @@ end
function
c10000080
.
ttcon2
(
e
,
c
)
function
c10000080
.
ttcon2
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
return
Duel
.
CheckTribute
(
c
,
3
,
3
,
nil
,
1
-
tp
)
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
,
mg
,
true
)
>=
3
end
end
function
c10000080
.
ttop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c10000080
.
ttop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
mg
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
...
...
c96570609.lua
View file @
8890497e
...
@@ -43,17 +43,11 @@ function c96570609.otfilter(c)
...
@@ -43,17 +43,11 @@ function c96570609.otfilter(c)
end
end
function
c96570609
.
otcon
(
e
,
c
)
function
c96570609
.
otcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
c96570609
.
otfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
c96570609
.
otfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
c
:
GetLevel
()
>
6
and
Duel
.
CheckTribute
(
c
,
1
,
1
,
mg
)
if
ft
<=
0
then
mg
=
mg
:
Filter
(
Card
.
IsControler
,
nil
,
tp
)
end
return
c
:
GetLevel
()
>
6
and
ft
>-
1
and
Duel
.
GetTributeCount
(
c
,
mg
)
>
0
end
end
function
c96570609
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c96570609
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c96570609
.
otfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
c96570609
.
otfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
mg
=
mg
:
Filter
(
Card
.
IsControler
,
nil
,
tp
)
end
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
,
mg
)
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
...
...
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