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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
0ee8ca03
Commit
0ee8ca03
authored
May 18, 2023
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
f003b6cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
119 deletions
+121
-119
expansions/script/c16104406.lua
expansions/script/c16104406.lua
+1
-0
expansions/script/c64837008.lua
expansions/script/c64837008.lua
+120
-119
No files found.
expansions/script/c16104406.lua
View file @
0ee8ca03
...
...
@@ -109,6 +109,7 @@ function cm.cfilter(c,e,tp)
return
c
:
IsSummonPlayer
(
tp
)
and
c
:
IsSetCard
(
0xccb
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
~=
e
:
GetHandler
()
end
function
cm
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
return
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
e
,
tp
)
and
g
:
GetCount
()
>
0
and
c
:
GetFlagEffect
(
m
*
10
)
==
0
end
...
...
expansions/script/c64837008.lua
View file @
0ee8ca03
...
...
@@ -17,7 +17,7 @@ function c64837008.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
,
64837008
)
e1
:
SetCondition
(
c64837008
.
eqcon
)
e1
:
SetCost
(
c64837008
.
eqcost
)
e1
:
SetTarget
(
c64837008
.
eqtg
)
...
...
@@ -77,7 +77,7 @@ function c64837008.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c64837008
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
>=
2
end
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
>=
3
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
function
c64837008
.
eqlimit
(
e
,
c
)
...
...
@@ -108,13 +108,14 @@ function c64837008.equip_monster(c,tp,tc)
end
function
c64837008
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
ag
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
if
ag
:
GetCount
()
<
2
then
return
end
local
g
=
ag
:
RandomSelect
(
1
-
tp
,
2
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
ag
:
GetCount
()
<
3
then
return
end
local
g
=
ag
:
RandomSelect
(
1
-
tp
,
3
)
Duel
.
ConfirmCards
(
tp
,
g
)
if
g
:
IsExists
(
Card
.
IsAbleToChangeControler
,
1
,
nil
)
then
local
sg
=
g
:
Filter
(
Card
.
IsAbleToChangeControler
,
1
,
nil
)
local
tc
=
sg
:
Select
(
1
-
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
c64837008
.
equip_monster
(
c
,
tp
,
tc
)
end
end
\ No newline at end of file
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