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
REIKAI
ygopro-222DIY-cards
Commits
203a96fb
Commit
203a96fb
authored
May 25, 2023
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
function aux.GetMustMaterialGroup replace
parent
38486850
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
25 deletions
+25
-25
expansions/script/c1110161.lua
expansions/script/c1110161.lua
+4
-4
expansions/script/c1156015.lua
expansions/script/c1156015.lua
+2
-2
expansions/script/c1156605.lua
expansions/script/c1156605.lua
+2
-2
expansions/script/c12098013.lua
expansions/script/c12098013.lua
+2
-2
expansions/script/c15000882.lua
expansions/script/c15000882.lua
+2
-2
expansions/script/c16104427.lua
expansions/script/c16104427.lua
+1
-1
expansions/script/c30666662.lua
expansions/script/c30666662.lua
+2
-2
expansions/script/c30683425.lua
expansions/script/c30683425.lua
+2
-2
expansions/script/c53702500.lua
expansions/script/c53702500.lua
+2
-2
expansions/script/c53713015.lua
expansions/script/c53713015.lua
+2
-2
expansions/script/c69696918.lua
expansions/script/c69696918.lua
+2
-2
expansions/script/c72409110.lua
expansions/script/c72409110.lua
+2
-2
No files found.
expansions/script/c1110161.lua
View file @
203a96fb
...
...
@@ -67,7 +67,7 @@ function c1110161.LinkCondition0(f,minc,maxc,gf)
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
mg
=
c1110161
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
aux
.
LCheckGoal
,
min
,
max
,
tp
,
c
,
gf
)
...
...
@@ -77,7 +77,7 @@ function c1110161.LinkTarget0(f,min,max,gf)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
mg
=
c1110161
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
GetCurrentChain
()
==
0
...
...
@@ -122,7 +122,7 @@ function c1110161.LinkCondition(f,minc,maxc,gf)
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
mg
=
aux
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
c1110161
.
LCheckGoal
,
min
,
max
,
tp
,
c
,
gf
)
...
...
@@ -132,7 +132,7 @@ function c1110161.LinkTarget(f,minc,maxc,gf)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
mg
=
aux
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
GetCurrentChain
()
==
0
...
...
expansions/script/c1156015.lua
View file @
203a96fb
...
...
@@ -72,7 +72,7 @@ function c1156015.LinkCondition(f,minc,maxc,gf)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
aux
.
LCheckGoal
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -98,7 +98,7 @@ function c1156015.LinkTarget(f,minc,maxc,gf)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c1156605.lua
View file @
203a96fb
...
...
@@ -48,7 +48,7 @@ function c1156605.LinkCondition(f,minc,maxc,gf)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
c1156605
.
LCheckGoal
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -74,7 +74,7 @@ function c1156605.LinkTarget(f,minc,maxc,gf)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c12098013.lua
View file @
203a96fb
...
...
@@ -90,7 +90,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
aux
.
LCheckGoal
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -116,7 +116,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c15000882.lua
View file @
203a96fb
...
...
@@ -75,7 +75,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if
not
cm
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
cm
.
LCheckGoal
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -100,7 +100,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if
not
cm
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c16104427.lua
View file @
203a96fb
...
...
@@ -95,7 +95,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if
not
cm
.
ConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
Duel
.
GetMustMaterial
Group
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c30666662.lua
View file @
203a96fb
...
...
@@ -93,7 +93,7 @@ function cm.linkcondition(f,minc,maxc,gf)
if
not
cm
.
ConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
cm
.
check
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -118,7 +118,7 @@ function cm.linktarget(f,minc,maxc,gf)
if
not
cm
.
ConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c30683425.lua
View file @
203a96fb
...
...
@@ -63,7 +63,7 @@ function cm.linkcondition(f,minc,maxc,gf)
if
not
cm
.
ConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
cm
.
check
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -88,7 +88,7 @@ function cm.linktarget(f,minc,maxc,gf)
if
not
cm
.
ConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c53702500.lua
View file @
203a96fb
...
...
@@ -2358,7 +2358,7 @@ function cm.LinkCondition(f,minc,maxc,gf,code)
if
not
aux
.
LConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
aux
.
LCheckGoal
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -2383,7 +2383,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if
not
cm
.
LConditionFilter
(
lmat
,
f
,
c
,
e
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
IsSummonCancelable
()
...
...
expansions/script/c53713015.lua
View file @
203a96fb
...
...
@@ -100,7 +100,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if
not
cm
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
cm
.
LCheckGoal
,
minc
,
maxc
,
tp
,
c
,
gf
,
lmat
)
...
...
@@ -125,7 +125,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
if
not
cm
.
LConditionFilter
(
lmat
,
f
,
c
)
then
return
false
end
mg
:
AddCard
(
lmat
)
end
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
GetCurrentChain
()
==
0
...
...
expansions/script/c69696918.lua
View file @
203a96fb
...
...
@@ -58,7 +58,7 @@ function cm.LinkCondition(f,minc,maxc,gf)
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
mg
=
cm
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
sg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
sg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
sg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
local
ct
=
sg
:
GetCount
()
if
ct
>
maxc
then
return
false
end
...
...
@@ -83,7 +83,7 @@ function cm.LinkTarget(f,minc,maxc,gf)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
mg
=
cm
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
bg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
bg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
#
bg
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
bg
:
Select
(
tp
,
#
bg
,
#
bg
,
nil
)
...
...
expansions/script/c72409110.lua
View file @
203a96fb
...
...
@@ -64,7 +64,7 @@ function c72409110.LinkCondition(f,minc,maxc,gf)
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
mg
=
aux
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
if
fg
:
IsExists
(
aux
.
MustMaterialCounterFilter
,
1
,
nil
,
mg
)
then
return
false
end
Duel
.
SetSelectedCard
(
fg
)
return
mg
:
CheckSubGroup
(
c72409110
.
LCheckGoal
,
min
,
max
,
tp
,
c
,
gf
)
...
...
@@ -74,7 +74,7 @@ function c72409110.LinkTarget(f,minc,maxc,gf)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
mg
=
aux
.
GetLinkMaterials
(
tp
,
f
,
c
)
local
fg
=
aux
.
GetMustMaterialGroup
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
local
fg
=
Duel
.
GetMustMaterial
(
tp
,
EFFECT_MUST_BE_LMATERIAL
)
Duel
.
SetSelectedCard
(
fg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_LMATERIAL
)
local
cancel
=
Duel
.
GetCurrentChain
()
==
0
...
...
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