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
4329e979
Commit
4329e979
authored
Sep 07, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
c56c2059
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c50218113.lua
expansions/script/c50218113.lua
+9
-8
No files found.
expansions/FiNALE.cdb
View file @
4329e979
No preview for this file type
expansions/script/c50218113.lua
View file @
4329e979
...
...
@@ -24,11 +24,11 @@ end
c50218113
.
lvup
=
{
50218114
}
function
c50218113
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
)
and
c
:
Is
Reason
(
REASON_DESTROY
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
Is
PreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
function
c50218113
.
eqfilter
(
c
,
tp
)
if
not
c
:
IsFaceup
()
or
not
c
:
IsControlerCanBeChanged
()
then
return
false
end
if
c
:
IsFacedown
()
then
return
false
end
if
c
:
IsType
(
TYPE_TRAPMONSTER
)
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
,
tp
,
LOCATION_REASON_CONTROL
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
,
tp
,
0
)
>=
2
end
return
true
end
...
...
@@ -48,13 +48,13 @@ function c50218113.eqop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
Duel
.
Equip
(
tp
,
c
,
tc
,
true
)
Duel
.
Equip
(
tp
,
c
,
tc
)
--Add Equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c50218113
.
eqlimit
)
e1
:
SetLabelObject
(
tc
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -63,7 +63,7 @@ function c50218113.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_SET_CONTROL
)
e2
:
SetValue
(
tp
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
--Destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -71,13 +71,13 @@ function c50218113.eqop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e3
:
SetOperation
(
c50218113
.
checkop
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetOperation
(
c50218113
.
desop
)
e4
:
SetReset
(
RESET_EVENT
+
0x17e0000
)
e4
:
SetReset
(
RESET_EVENT
+
RESET_OVERLAY
+
RESET_TOFIELD
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
end
...
...
@@ -88,6 +88,7 @@ function c50218113.checkop(e,tp,eg,ep,ev,re,r,rp)
else
e
:
SetLabel
(
0
)
end
end
function
c50218113
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
Reset
()
if
e
:
GetLabelObject
():
GetLabel
()
~=
0
then
return
end
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
...
...
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