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
62b9dff9
Commit
62b9dff9
authored
Apr 05, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md
parent
858c46dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
8 deletions
+39
-8
expansions/script/c33340013.lua
expansions/script/c33340013.lua
+39
-8
No files found.
expansions/script/c33340013.lua
View file @
62b9dff9
--时境断裂
--时境断裂
Duel
.
LoadScript
(
"c10199990.lua"
)
local
m
=
33340013
local
m
=
33340013
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e1
=
rsef
.
ACT
(
c
)
--Activate
e1
:
RegisterSolve
(
cm
.
con
,
nil
,
nil
,
cm
.
op
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
cm
.
con
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--act in hand
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -20,9 +24,35 @@ function cm.con(e,tp)
...
@@ -20,9 +24,35 @@ function cm.con(e,tp)
end
end
function
cm
.
op
(
e
,
tp
)
function
cm
.
op
(
e
,
tp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
rsef
.
FC
({
c
,
tp
},
EVENT_SPSUMMON_SUCCESS
,
nil
,
nil
,
nil
,
nil
,
nil
,
cm
.
spop
,
rsreset
.
pend
)
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e2
=
rsef
.
FV_LIMIT_PLAYER
({
c
,
tp
},
"sp"
,
nil
,
cm
.
tg
,{
0
,
1
},
nil
,
rsreset
.
pend
)
e7
:
SetLabel
(
0
)
e2
:
SetLabelObject
(
e1
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e8
:
SetLabelObject
(
e7
)
e8
:
SetOperation
(
cm
.
spop
)
Duel
.
RegisterEffect
(
e8
,
tp
)
local
e9
=
e8
:
Clone
()
e9
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e9
:
SetLabelObject
(
e7
)
Duel
.
RegisterEffect
(
e9
,
tp
)
Debug
.
Message
(
e9
:
GetLabelObject
())
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTarget
(
cm
.
tg
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetLabelObject
(
e8
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e2
:
SetLabelObject
(
e9
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
cm
.
splimit
(
e
,
c
)
return
not
c
:
IsRace
(
RACE_PLANT
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
)
function
cm
.
spop
(
e
,
tp
,
eg
)
local
loc
=
0
local
loc
=
0
...
@@ -33,8 +63,9 @@ function cm.spop(e,tp,eg)
...
@@ -33,8 +63,9 @@ function cm.spop(e,tp,eg)
loc
=
loc
|
loc2
loc
=
loc
|
loc2
end
end
end
end
e
:
SetLabel
(
loc
)
local
te
=
e
:
GetLabelObject
()
te
:
SetLabel
(
loc
)
end
end
function
cm
.
tg
(
e
,
c
)
function
cm
.
tg
(
e
,
c
)
return
c
:
IsLocation
(
e
:
GetLabelObject
():
GetLabel
())
return
c
:
IsLocation
(
e
:
GetLabelObject
():
GetLabel
Object
():
GetLabel
())
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