Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Ai
ygopro-222DIY-cards
Commits
d42514dd
Commit
d42514dd
authored
Nov 05, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
769befc4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
expansions/script/c33330107.lua
expansions/script/c33330107.lua
+3
-2
expansions/script/c33400114.lua
expansions/script/c33400114.lua
+3
-3
expansions/script/c65010092.lua
expansions/script/c65010092.lua
+1
-1
expansions/script/c65050125.lua
expansions/script/c65050125.lua
+1
-1
No files found.
expansions/script/c33330107.lua
View file @
d42514dd
--造神计划7 赤游鱼
--造神计划7 赤游鱼
function
c33330107
.
initial_effect
(
c
)
function
c33330107
.
initial_effect
(
c
)
--link summon
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c33330107
.
lcheck
)
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
99
,
c33330107
.
lcheck
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--spsummon
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -37,6 +37,7 @@ function c33330107.lcheck(g,lc)
...
@@ -37,6 +37,7 @@ function c33330107.lcheck(g,lc)
return
g
:
IsExists
(
Card
.
IsLinkRace
,
1
,
nil
,
RACE_AQUA
)
return
g
:
IsExists
(
Card
.
IsLinkRace
,
1
,
nil
,
RACE_AQUA
)
end
end
function
c33330107
.
disable
(
e
,
c
)
function
c33330107
.
disable
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
local
lg1
=
Duel
.
GetLinkedGroup
(
tp
,
1
,
1
)
local
lg1
=
Duel
.
GetLinkedGroup
(
tp
,
1
,
1
)
local
lg2
=
Duel
.
GetLinkedGroup
(
1
-
tp
,
1
,
1
)
local
lg2
=
Duel
.
GetLinkedGroup
(
1
-
tp
,
1
,
1
)
lg1
:
Merge
(
lg2
)
lg1
:
Merge
(
lg2
)
...
@@ -66,7 +67,7 @@ function c33330107.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -66,7 +67,7 @@ function c33330107.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_GRAVE
)
end
end
function
c33330107
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33330107
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
then
return
end
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
then
return
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
if
g
then
if
g
then
...
...
expansions/script/c33400114.lua
View file @
d42514dd
...
@@ -16,7 +16,7 @@ function c33400114.tfilter(c,e,tp)
...
@@ -16,7 +16,7 @@ function c33400114.tfilter(c,e,tp)
return
c
:
IsCode
(
33400011
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsCode
(
33400011
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c33400114
.
filter
(
c
,
e
,
tp
)
function
c33400114
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3341
)
return
c
:
IsSetCard
(
0x3341
)
and
Duel
.
IsExistingMatchingCard
(
c33400114
.
tfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c33400114
.
tfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
>
0
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
>
0
end
end
...
@@ -69,8 +69,8 @@ function c33400114.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,8 +69,8 @@ function c33400114.tgop(e,tp,eg,ep,ev,re,r,rp)
local
dg
=
Duel
.
GetMatchingGroup
(
c33400114
.
ss
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
dg
=
Duel
.
GetMatchingGroup
(
c33400114
.
ss
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
dg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33400114
,
0
))
then
if
dg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
33400114
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33400114
.
ss
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33400114
.
ss
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
expansions/script/c65010092.lua
View file @
d42514dd
...
@@ -16,7 +16,7 @@ function c65010092.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c65010092.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
,
65010092
)
e1
:
SetCost
(
c65010092
.
cost
)
e1
:
SetCost
(
c65010092
.
cost
)
e1
:
SetTarget
(
c65010092
.
tg
)
e1
:
SetTarget
(
c65010092
.
tg
)
e1
:
SetOperation
(
c65010092
.
op
)
e1
:
SetOperation
(
c65010092
.
op
)
...
...
expansions/script/c65050125.lua
View file @
d42514dd
...
@@ -38,7 +38,7 @@ function c65050125.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -38,7 +38,7 @@ function c65050125.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
0
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
0
,
0
,
tp
,
2
)
end
end
function
c65050125
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65050125
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGrave
,
1
,
1
,
REASON_EFFECT
,
nil
)
~=
0
then
if
Duel
.
DiscardHand
(
tp
,
c65050125
.
tgfilter
,
1
,
1
,
REASON_EFFECT
,
nil
)
~=
0
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
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