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
0a78939f
Commit
0a78939f
authored
Aug 23, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
5942c38e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12892007.lua
expansions/script/c12892007.lua
+4
-1
expansions/script/c24865318.lua
expansions/script/c24865318.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
0a78939f
No preview for this file type
expansions/script/c12892007.lua
View file @
0a78939f
...
@@ -21,6 +21,7 @@ function c12892007.initial_effect(c)
...
@@ -21,6 +21,7 @@ function c12892007.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
cm
.
actlimit
)
e3
:
SetValue
(
cm
.
actlimit
)
e3
:
SetCondition
(
cm
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -46,6 +47,7 @@ function cm.cfilter(c,tp)
...
@@ -46,6 +47,7 @@ function cm.cfilter(c,tp)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8a72
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8a72
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DEATTACHFROM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DEATTACHFROM
)
...
@@ -53,7 +55,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -53,7 +55,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
cm
.
actcon
(
e
)
function
cm
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
Duel
.
GetAttacker
()
==
c
and
c
:
GetBattleTarget
())
or
Duel
.
GetAttackTarget
()
==
c
end
end
function
cm
.
actlimit
(
e
,
re
,
tp
)
function
cm
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
...
...
expansions/script/c24865318.lua
View file @
0a78939f
...
@@ -128,7 +128,7 @@ function c24865318.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -128,7 +128,7 @@ function c24865318.op(e,tp,eg,ep,ev,re,r,rp)
--从卡组选一张「量子妖海-狄拉克」加入手卡或在把这张卡发动的玩家的场上发动
--从卡组选一张「量子妖海-狄拉克」加入手卡或在把这张卡发动的玩家的场上发动
if
sel
==
2
then
if
sel
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
c
=
e
:
GetHandler
()
local
c
=
r
e
:
GetHandler
()
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
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