Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
8c61a859
Commit
8c61a859
authored
Jun 07, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2375c665
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
27 deletions
+9
-27
script/c10000050.lua
script/c10000050.lua
+9
-27
No files found.
script/c10000050.lua
View file @
8c61a859
...
@@ -17,8 +17,7 @@ function c10000050.initial_effect(c)
...
@@ -17,8 +17,7 @@ function c10000050.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_LIMIT_SET_PROC
)
e3
:
SetCode
(
EFFECT_CANNOT_MSET
)
e3
:
SetCondition
(
c10000050
.
setcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -53,47 +52,30 @@ function c10000050.initial_effect(c)
...
@@ -53,47 +52,30 @@ function c10000050.initial_effect(c)
e8
:
SetTarget
(
c10000050
.
sptg
)
e8
:
SetTarget
(
c10000050
.
sptg
)
e8
:
SetOperation
(
c10000050
.
spop
)
e8
:
SetOperation
(
c10000050
.
spop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetCode
(
EFFECT_EXTRA_RELEASE
)
e9
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e9
:
SetRange
(
LOCATION_HAND
)
e9
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e9
:
SetCondition
(
c10000050
.
check
)
c
:
RegisterEffect
(
e9
)
end
function
c10000050
.
check
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
10000050
)
~=
0
end
end
function
c10000050
.
ttcon
(
e
,
c
)
function
c10000050
.
ttcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
b1
=
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
)
>=
3
local
tp
=
c
:
GetControler
()
c
:
RegisterFlagEffect
(
10000050
,
0
,
0
,
1
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetFieldGroup
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
)
return
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
)
>=
3
)
local
b2
=
Duel
.
GetLocationCount
(
1
-
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
,
g
)
>=
3
or
(
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>-
3
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsReleasable
,
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
3
,
nil
))
c
:
ResetFlagEffect
(
10000050
)
return
b1
or
b2
end
end
function
c10000050
.
ttop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c10000050
.
ttop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
c
=
e
:
GetHandler
()
local
b1
=
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
)
>=
3
local
b1
=
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
)
>=
3
c
:
RegisterFlagEffect
(
10000050
,
0
,
0
,
1
)
local
g
=
Duel
.
GetFieldGroup
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetFieldGroup
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
)
local
b2
=
Duel
.
GetLocationCount
(
1
-
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
GetTributeCount
(
c
,
g
)
>=
3
local
b2
=
Duel
.
GetLocationCount
(
1
-
c
:
GetControler
(),
LOCATION_MZONE
)
>-
3
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsReleasable
,
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
3
,
nil
)
local
op
=
0
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10000050
,
0
),
aux
.
Stringid
(
10000050
,
1
))
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10000050
,
0
),
aux
.
Stringid
(
10000050
,
1
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10000050
,
0
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10000050
,
0
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10000050
,
1
))
+
1
end
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
10000050
,
1
))
+
1
end
if
op
==
0
then
if
op
==
0
then
c
:
ResetFlagEffect
(
10000050
)
local
mg
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
local
mg
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
)
c
:
SetMaterial
(
mg
)
c
:
SetMaterial
(
mg
)
Duel
.
Release
(
mg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
mg
,
REASON_SUMMON
+
REASON_MATERIAL
)
else
else
local
mg
=
Duel
.
SelectTribute
(
tp
,
c
,
3
,
3
,
g
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsReleasable
,
tp
,
0
,
LOCATION_MZONE
,
3
,
3
,
nil
)
c
:
SetMaterial
(
mg
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
mg
,
REASON_SUMMON
+
REASON_MATERIAL
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
c
:
ResetFlagEffect
(
10000050
)
e
:
SetProperty
(
EFFECT_FLAG_SPSUM_PARAM
)
e
:
SetProperty
(
EFFECT_FLAG_SPSUM_PARAM
)
e
:
SetTargetRange
(
POS_FACEUP_ATTACK
,
1
)
e
:
SetTargetRange
(
POS_FACEUP_ATTACK
,
1
)
end
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