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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
a277db6e
Commit
a277db6e
authored
Jan 10, 2025
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c11451910.lua
parent
4394bcc6
Pipeline
#32503
passed with stages
in 31 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
expansions/script/c11451910.lua
expansions/script/c11451910.lua
+10
-4
No files found.
expansions/script/c11451910.lua
View file @
a277db6e
...
...
@@ -5,7 +5,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
--e1:SetOperation(function() Debug.Message(
string.dump(loadfile("expansions/script/c11451909.lua")
)) end)
--e1:SetOperation(function() Debug.Message(
loadstring(string.dump(function() return 1 end))(1
)) end)
c
:
RegisterEffect
(
e1
)
--sp
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -33,9 +33,13 @@ function cm.initial_effect(c)
end
function
cm
.
filter
(
c
)
local
re
=
c
:
GetReasonEffect
()
if
not
(
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsStatus
(
STATUS_TO_HAND_WITHOUT_CONFIRM
)
and
re
)
then
return
false
end
if
not
re
then
return
false
end
local
rc
=
re
:
GetOwner
()
return
rc
:
IsOriginalSetCard
(
0xc976
)
--and rc:GetOriginalType()&0x1>0
if
not
(
c
:
IsType
(
TYPE_MONSTER
)
and
rc
:
IsOriginalSetCard
(
0xc976
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
))
then
return
false
end
local
b1
=
not
c
:
IsLocation
(
LOCATION_HAND
+
LOCATION_REMOVED
)
local
b2
=
c
:
IsLocation
(
LOCATION_HAND
)
and
(
c
:
IsPublic
()
or
not
c
:
IsStatus
(
STATUS_TO_HAND_WITHOUT_CONFIRM
))
local
b3
=
c
:
IsLocation
(
LOCATION_REMOVED
)
and
c
:
IsFaceup
()
return
b1
or
b2
or
b3
end
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
cm
.
filter
,
nil
)
...
...
@@ -141,5 +145,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
if
tc
:
GetFlagEffect
(
m
)
~=
0
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
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