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
15c4fec3
Commit
15c4fec3
authored
Oct 22, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
6e84c2fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
expansions/script/c65050105.lua
expansions/script/c65050105.lua
+4
-2
expansions/script/c65050112.lua
expansions/script/c65050112.lua
+1
-1
expansions/script/c65050114.lua
expansions/script/c65050114.lua
+2
-2
expansions/script/c81009021.lua
expansions/script/c81009021.lua
+5
-2
No files found.
expansions/script/c65050105.lua
View file @
15c4fec3
...
...
@@ -60,13 +60,15 @@ function c65050105.disop2(e,tp,eg,ep,ev,re,r,rp)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c65050105
.
thfil1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g11
=
Duel
.
SelectMatchingCard
(
tp
,
c65050105
.
thfil2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
g1
:
Merge
(
g11
)
Duel
.
SpecialSummon
(
g1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SendtoHand
(
g1
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
end
if
Duel
.
IsExistingMatchingCard
(
c65050105
.
thfil1
,
1
-
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c65050105
.
thfil2
,
1
-
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
65050105
,
1
))
then
local
g2
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c65050105
.
thfil1
,
1
-
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g22
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c65050105
.
thfil2
,
1
-
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
g2
:
Merge
(
g22
)
Duel
.
SpecialSummon
(
g2
,
0
,
1
-
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SendtoHand
(
g2
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
tp
,
g2
)
end
end
end
...
...
expansions/script/c65050112.lua
View file @
15c4fec3
...
...
@@ -64,7 +64,7 @@ function c65050112.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
1
-
tp
,
1
)
end
function
c65050112
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65050112
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
...
...
expansions/script/c65050114.lua
View file @
15c4fec3
...
...
@@ -44,10 +44,10 @@ function c65050114.op1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c65050114
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c65050114
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
tg
:
GetCount
()
>
0
then
local
tc
=
tg
:
GetFirst
()
local
mg
=
Duel
.
GetMatchingGroup
(
c65050114
.
matfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
tc
)
local
mg
=
Duel
.
GetMatchingGroup
(
c65050114
.
matfilter
,
tp
,
LOCATION_GRAVE
,
0
,
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
99
,
tc
)
tc
:
SetMaterial
(
mat
)
...
...
expansions/script/c81009021.lua
View file @
15c4fec3
...
...
@@ -2,7 +2,7 @@
function
c81009021
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_FIRE
),
c81009021
.
ffilter
,
false
)
aux
.
AddFusionProcFun2
(
c
,
c81009021
.
affilter
,
c81009021
.
b
ffilter
,
false
)
aux
.
AddContactFusionProcedure
(
c
,
Card
.
IsReleasable
,
LOCATION_MZONE
,
0
,
Duel
.
Release
,
REASON_COST
+
REASON_FUSION
+
REASON_MATERIAL
)
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -39,7 +39,10 @@ end
function
c81009021
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
c81009021
.
ffilter
(
c
)
function
c81009021
.
affilter
(
c
)
return
c
:
IsFusionAttribute
(
ATTRIBUTE_FIRE
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
end
function
c81009021
.
bffilter
(
c
)
return
c
:
IsFusionAttribute
(
ATTRIBUTE_FIRE
)
and
not
c
:
IsFusionType
(
TYPE_TOKEN
)
end
function
c81009021
.
cfilter
(
c
)
...
...
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