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
REIKAI
ygopro-222DIY-cards
Commits
977c8840
Commit
977c8840
authored
Dec 24, 2024
by
花桃白音
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Duel summon with s/t bug#0004
parent
723b187f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
+2
-29
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c4204001.lua
expansions/script/c4204001.lua
+2
-29
No files found.
expansions/FiNALE.cdb
View file @
977c8840
No preview for this file type
expansions/script/c4204001.lua
View file @
977c8840
...
@@ -4,7 +4,7 @@ function c4204001.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c4204001.initial_effect(c)
aux
.
AddCodeList
(
c
,
4204000
)
aux
.
AddCodeList
(
c
,
4204000
)
--change name
--change name
aux
.
EnableChangeCode
(
c
,
4204000
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_MZONE
+
LOCATION_GRAVE
)
aux
.
EnableChangeCode
(
c
,
4204000
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_MZONE
+
LOCATION_GRAVE
)
--summon with s/t
--
[[
summon with s/t
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
...
@@ -14,7 +14,7 @@ function c4204001.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c4204001.initial_effect(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL) and not c:IsStatus(STATUS_ACTIVATE_DISABLED)
return c:IsFaceup() and c:IsType(TYPE_SPELL) and not c:IsStatus(STATUS_ACTIVATE_DISABLED)
end))
end))
e1:SetValue(POS_FACEUP_ATTACK)
e1:SetValue(POS_FACEUP_ATTACK)
c
:
RegisterEffect
(
e1
)
c:RegisterEffect(e1)
]]
--disable spsummon
--disable spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -52,31 +52,4 @@ function c4204001.initial_effect(c)
...
@@ -52,31 +52,4 @@ function c4204001.initial_effect(c)
return
not
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
end
)
return
not
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
end
)
e4
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e4
:
SetTargetRange
(
LOCATION_HAND
,
0
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--set
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetCode
(
EVENT_FREE_CHAIN
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCost
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
)
e5
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c4204001
.
stfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c4204001
.
stfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c4204001
.
stfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
)
e5
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
end
end
)
c
:
RegisterEffect
(
e5
)
end
end
function
c4204001
.
stfilter
(
c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsSSetable
()
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