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
Soulgamer
ygopro-222DIY-cards
Commits
0cbb9e2a
Commit
0cbb9e2a
authored
Nov 16, 2022
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update lua
parent
e8b5a991
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
200 additions
and
190 deletions
+200
-190
expansions/script/c33503210.lua
expansions/script/c33503210.lua
+111
-104
expansions/script/c66914013.lua
expansions/script/c66914013.lua
+89
-86
No files found.
expansions/script/c33503210.lua
View file @
0cbb9e2a
...
...
@@ -15,13 +15,19 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--synchro level
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SYNCHRO_LEVEL
)
e2
:
SetTarget
(
cm
.
imtg
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
cm
.
slevel
)
c
:
RegisterEffect
(
e2
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetTarget
(
cm
.
imtg
)
e5
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -66,7 +72,8 @@ function cm.imtg(e,c)
return
c
:
IsCode
(
m
-
10
)
end
function
cm
.
slevel
(
e
,
c
,
rc
)
return
c
:
GetLevel
()
+
2
*
65536
local
lv
=
aux
.
GetCappedLevel
(
e
:
GetHandler
())
return
(
2
<<
16
)
+
lv
end
function
cm
.
cfilter
(
c
,
ft
,
tp
)
...
...
expansions/script/c66914013.lua
View file @
0cbb9e2a
...
...
@@ -68,6 +68,9 @@ function c66914013.disrmop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
)
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
tc
:
CancelToGrave
()
end
Duel
.
Overlay
(
c
,
tc
)
end
Duel
.
ShuffleDeck
(
tp
)
...
...
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