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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
8e576469
Commit
8e576469
authored
Oct 26, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c64800181.lua
parent
0f193f7c
Pipeline
#30726
canceled with stages
in 3 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
27 deletions
+16
-27
expansions/script/c64800181.lua
expansions/script/c64800181.lua
+16
-27
No files found.
expansions/script/c64800181.lua
View file @
8e576469
...
@@ -25,13 +25,12 @@ function cm.initial_effect(c)
...
@@ -25,13 +25,12 @@ function cm.initial_effect(c)
--equip
--equip
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
EFFECT_UPDATE_LEVEL
+
CATEGORY_EQUIP
)
e2
:
SetCategory
(
EFFECT_UPDATE_LEVEL
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
m
+
200
)
e2
:
SetCountLimit
(
1
,
m
+
200
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetTarget
(
cm
.
seqtg
)
e2
:
SetOperation
(
cm
.
activate
)
e2
:
SetOperation
(
cm
.
seqop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
e
,
tp
)
...
@@ -65,7 +64,7 @@ function cm.eqlimit(e,c)
...
@@ -65,7 +64,7 @@ function cm.eqlimit(e,c)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
end
end
function
cm
.
tgfilter
(
c
)
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x412
)
and
not
c
:
IsCode
(
64800181
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x412
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
64800181
)
and
c
:
IsAbleToHand
(
)
end
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
@@ -80,35 +79,25 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,35 +79,25 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
end
function
cm
.
seqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
return
ec
end
return
ec
and
ec
:
IsLevelAbove
(
1
)
and
not
ec
:
IsLevel
(
10
)
end
end
function
cm
.
seqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetEquipTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
not
tc
:
IsLevel
(
10
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
10
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
10
)
c
:
RegisterEffect
(
e3
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
--direct attack
--direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e2
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e2
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e2
:
SetCondition
(
cm
.
dircon
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
t
c
:
RegisterEffect
(
e2
)
end
end
end
end
function
cm
.
dircon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetControler
()
==
e
:
GetHandlerPlayer
()
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