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
8874357f
Commit
8874357f
authored
Feb 15, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
31f3e41d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
17 deletions
+42
-17
expansions/script/c53716001.lua
expansions/script/c53716001.lua
+1
-1
expansions/script/c53716007.lua
expansions/script/c53716007.lua
+41
-16
No files found.
expansions/script/c53716001.lua
View file @
8874357f
...
...
@@ -45,7 +45,7 @@ function cm.initial_effect(c)
end
function
cm
.
fselect
(
g
,
ft
,
res
)
local
sel
=
g
:
IsExists
(
function
(
c
)
return
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
GetSequence
()
~=
5
and
c
:
IsFaceup
()
end
,
1
,
nil
)
or
ft
>
0
return
sel
and
((
res
and
g
:
IsExists
(
function
(
c
)
return
bit
.
band
(
c
:
GetType
(),
0x20002
)
==
0x20002
and
c
:
IsSetCard
(
0x353b
)
end
,
1
,
nil
)
and
#
g
~=
2
)
or
(
not
res
and
#
g
==
3
))
return
sel
and
((
res
and
#
g
~=
2
and
(
g
:
IsExists
(
function
(
c
)
return
bit
.
band
(
c
:
GetType
(),
0x20002
)
==
0x20002
and
c
:
IsSetCard
(
0x353b
)
end
,
1
,
nil
)
or
#
g
==
3
)
)
or
(
not
res
and
#
g
==
3
))
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
costg
=
Duel
.
GetMatchingGroup
(
function
(
c
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsReleasable
()
end
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
...
...
expansions/script/c53716007.lua
View file @
8874357f
...
...
@@ -3,20 +3,45 @@ local cm=_G["c"..m]
cm
.
name
=
"断片折光 幻想死阶"
if
not
pcall
(
function
()
require
(
"expansions/script/c53702500"
)
end
)
then
require
(
"script/c53702500"
)
end
function
cm
.
initial_effect
(
c
)
SNNM
.
FanippetTrap
(
c
,
800
,
m
,
1900
,
700
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
ge1
:
SetCondition
(
cm
.
regcon
)
ge1
:
SetOperation
(
cm
.
regop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
cm
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RaiseEvent
(
re
:
GetHandler
(),
EVENT_CUSTOM
+
m
,
re
,
r
,
rp
,
ep
,
ev
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
53702500
,
0
))
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
)
e1
:
SetTarget
(
SNNM
.
FanippetTrapSPTarget
(
m
,
1900
,
700
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
))
e1
:
SetOperation
(
SNNM
.
FanippetTrapSPOperation
(
800
,
m
,
1900
,
700
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
))
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetRange
(
LOCATION_GRAVE
)
c
:
RegisterEffect
(
e2
)
local
e21
=
e1
:
Clone
()
e21
:
SetCode
(
EVENT_FREE_CHAIN
)
e21
:
SetProperty
(
0
)
e21
:
SetCondition
(
function
(
e
)
return
false
end
)
c
:
RegisterEffect
(
e21
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_ACTIVATE_COST
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetCost
(
SNNM
.
GraveActCostchk
)
e4
:
SetTarget
(
SNNM
.
GraveActCostTarget
)
e4
:
SetOperation
(
SNNM
.
GraveActCostOp
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_DECKDES
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetCode
(
EVENT_RELEASE
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e5
:
SetCondition
(
SNNM
.
FanippetTrapTGCondition
)
e5
:
SetTarget
(
SNNM
.
FanippetTrapTGTarget
)
e5
:
SetOperation
(
SNNM
.
FanippetTrapTGOperation
)
c
:
RegisterEffect
(
e5
)
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