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
00758b8b
Commit
00758b8b
authored
Oct 08, 2024
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change&fix
parent
ea4de8a0
Pipeline
#30254
passed with stages
in 40 minutes and 55 seconds
Changes
11
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
103 additions
and
108 deletions
+103
-108
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c1000810.lua
expansions/script/c1000810.lua
+1
-1
expansions/script/c1000812.lua
expansions/script/c1000812.lua
+1
-1
expansions/script/c1000814.lua
expansions/script/c1000814.lua
+1
-1
expansions/script/c1009018.lua
expansions/script/c1009018.lua
+22
-18
expansions/script/c1009019.lua
expansions/script/c1009019.lua
+23
-19
expansions/script/c1009020.lua
expansions/script/c1009020.lua
+11
-7
expansions/script/c1009021.lua
expansions/script/c1009021.lua
+32
-28
expansions/script/c1009022.lua
expansions/script/c1009022.lua
+1
-1
expansions/script/c1009023.lua
expansions/script/c1009023.lua
+11
-7
expansions/script/c1009037.lua
expansions/script/c1009037.lua
+0
-25
No files found.
expansions/FiNALE.cdb
View file @
00758b8b
No preview for this file type
expansions/script/c1000810.lua
View file @
00758b8b
...
@@ -35,7 +35,7 @@ function c1000810.initial_effect(c)
...
@@ -35,7 +35,7 @@ function c1000810.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetRange
(
LOCATION_GRAVE
)
e5
:
SetRange
(
LOCATION_GRAVE
)
e5
:
SetCountLimit
(
1
,
722
4
)
e5
:
SetCountLimit
(
1
,
722
5
)
e5
:
SetCondition
(
aux
.
exccon
)
e5
:
SetCondition
(
aux
.
exccon
)
e5
:
SetCost
(
c1000810
.
fucost
)
e5
:
SetCost
(
c1000810
.
fucost
)
e5
:
SetTarget
(
c1000810
.
futarget
)
e5
:
SetTarget
(
c1000810
.
futarget
)
...
...
expansions/script/c1000812.lua
View file @
00758b8b
...
@@ -24,7 +24,7 @@ function c1000812.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c1000812.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCountLimit
(
1
,
722
6
)
e3
:
SetCountLimit
(
1
,
722
7
)
e3
:
SetCondition
(
aux
.
exccon
)
e3
:
SetCondition
(
aux
.
exccon
)
e3
:
SetCost
(
c1000812
.
tgcost
)
e3
:
SetCost
(
c1000812
.
tgcost
)
e3
:
SetTarget
(
c1000812
.
tgtarget
)
e3
:
SetTarget
(
c1000812
.
tgtarget
)
...
...
expansions/script/c1000814.lua
View file @
00758b8b
...
@@ -23,7 +23,7 @@ function c1000814.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c1000814.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCountLimit
(
1
,
722
8
)
e3
:
SetCountLimit
(
1
,
722
9
)
e3
:
SetCondition
(
c1000814
.
sppcon
)
e3
:
SetCondition
(
c1000814
.
sppcon
)
e3
:
SetCost
(
c1000814
.
fucost
)
e3
:
SetCost
(
c1000814
.
fucost
)
e3
:
SetTarget
(
c1000814
.
futarget
)
e3
:
SetTarget
(
c1000814
.
futarget
)
...
...
expansions/script/c1009018.lua
View file @
00758b8b
...
@@ -30,25 +30,26 @@ function c1009018.initial_effect(c)
...
@@ -30,25 +30,26 @@ function c1009018.initial_effect(c)
e3
:
SetOperation
(
c1009018
.
sumop
)
e3
:
SetOperation
(
c1009018
.
sumop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--summon with s/t
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e11
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e11
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e11
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
e11
:
SetTarget
(
c1009022
.
exrtg
)
c
:
RegisterEffect
(
e1
)
e11
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e11
)
--search
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
1009018
,
1
))
e2
2
:
SetDescription
(
aux
.
Stringid
(
1009018
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
1009018
)
e2
2
:
SetCountLimit
(
1
,
1009018
)
e2
:
SetCondition
(
c1009018
.
thcon
)
e2
2
:
SetCondition
(
c1009018
.
thcon
)
e2
:
SetTarget
(
c1009018
.
thtg
)
e2
2
:
SetTarget
(
c1009018
.
thtg
)
e2
:
SetOperation
(
c1009018
.
thop
)
e2
2
:
SetOperation
(
c1009018
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
2
)
--destroy
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
1009018
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
1009018
,
2
))
...
@@ -62,6 +63,9 @@ function c1009018.initial_effect(c)
...
@@ -62,6 +63,9 @@ function c1009018.initial_effect(c)
e4
:
SetOperation
(
c1009018
.
desop
)
e4
:
SetOperation
(
c1009018
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c1009018
.
exrtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
(
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
or
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
))
end
function
c1009018
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1009018
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
1009018
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
1009018
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
1009018
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
1009018
,
RESET_CHAIN
,
0
,
1
)
...
...
expansions/script/c1009019.lua
View file @
00758b8b
...
@@ -8,29 +8,30 @@ function c1009019.initial_effect(c)
...
@@ -8,29 +8,30 @@ function c1009019.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetTarget
(
c1009022
.
exrtg
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1160
)
e1
1
:
SetDescription
(
1160
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
1
:
SetRange
(
LOCATION_SZONE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
1
)
--negate
--negate
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
1
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
1009019
,
1
))
e3
1
:
SetDescription
(
aux
.
Stringid
(
1009019
,
1
))
e3
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DESTROY
)
e3
1
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e3
1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
1
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
1
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
1009019
)
e3
1
:
SetCountLimit
(
1
,
1009019
)
e3
:
SetCondition
(
c1009019
.
negcon
)
e3
1
:
SetCondition
(
c1009019
.
negcon
)
e3
:
SetCost
(
c1009019
.
negcost
)
e3
1
:
SetCost
(
c1009019
.
negcost
)
e3
:
SetTarget
(
c1009019
.
negtg
)
e3
1
:
SetTarget
(
c1009019
.
negtg
)
e3
:
SetOperation
(
c1009019
.
negop
)
e3
1
:
SetOperation
(
c1009019
.
negop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
1
)
--destory and atk & def down
--destory and atk & def down
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
1009019
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
1009019
,
0
))
...
@@ -79,6 +80,9 @@ function c1009019.initial_effect(c)
...
@@ -79,6 +80,9 @@ function c1009019.initial_effect(c)
e8
:
SetOperation
(
c1009019
.
sumsuc
)
e8
:
SetOperation
(
c1009019
.
sumsuc
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c1009019
.
exrtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
(
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
or
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
))
end
function
c1009019
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1009019
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
1009019
,
4
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
1009019
,
4
))
end
end
...
...
expansions/script/c1009020.lua
View file @
00758b8b
...
@@ -40,13 +40,14 @@ function c1009020.initial_effect(c)
...
@@ -40,13 +40,14 @@ function c1009020.initial_effect(c)
e3
:
SetOperation
(
c1009020
.
sumop
)
e3
:
SetOperation
(
c1009020
.
sumop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--summon with s/t
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e11
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e11
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e11
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
e11
:
SetTarget
(
c1009022
.
exrtg
)
c
:
RegisterEffect
(
e1
)
e11
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e11
)
--destroy
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
1009020
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
1009020
,
0
))
...
@@ -60,6 +61,9 @@ function c1009020.initial_effect(c)
...
@@ -60,6 +61,9 @@ function c1009020.initial_effect(c)
e4
:
SetOperation
(
c1009020
.
desop
)
e4
:
SetOperation
(
c1009020
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c1009020
.
exrtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
(
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
or
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
))
end
function
c1009020
.
reg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1009020
.
reg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
e
:
GetHandler
():
RegisterFlagEffect
(
1009020
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
1009020
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
...
...
expansions/script/c1009021.lua
View file @
00758b8b
...
@@ -3,13 +3,14 @@ function c1009021.initial_effect(c)
...
@@ -3,13 +3,14 @@ function c1009021.initial_effect(c)
--pendulum summon
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--summon with s/t
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e11
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e11
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e11
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
e11
:
SetTarget
(
c1009022
.
exrtg
)
c
:
RegisterEffect
(
e1
)
e11
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e11
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1160
)
e1
:
SetDescription
(
1160
)
...
@@ -18,14 +19,14 @@ function c1009021.initial_effect(c)
...
@@ -18,14 +19,14 @@ function c1009021.initial_effect(c)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetRange
(
LOCATION_SZONE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--pendulum set
--pendulum set
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
1009021
,
0
))
e
2
:
SetDescription
(
aux
.
Stringid
(
1009021
,
0
))
e
1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
1
:
SetRange
(
LOCATION_PZONE
)
e
2
:
SetRange
(
LOCATION_PZONE
)
e
1
:
SetCountLimit
(
1
,
1009021
)
e
2
:
SetCountLimit
(
1
,
1009021
)
e
1
:
SetTarget
(
c1009021
.
pctg
)
e
2
:
SetTarget
(
c1009021
.
pctg
)
e
1
:
SetOperation
(
c1009021
.
pcop
)
e
2
:
SetOperation
(
c1009021
.
pcop
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
2
)
--destroy
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
1009021
,
3
))
e3
:
SetDescription
(
aux
.
Stringid
(
1009021
,
3
))
...
@@ -44,19 +45,19 @@ function c1009021.initial_effect(c)
...
@@ -44,19 +45,19 @@ function c1009021.initial_effect(c)
e4
:
SetLabelObject
(
e3
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--tribute summon
--tribute summon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e
1
3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
1009021
,
2
))
e
1
3
:
SetDescription
(
aux
.
Stringid
(
1009021
,
2
))
e3
:
SetCategory
(
CATEGORY_SUMMON
)
e
1
3
:
SetCategory
(
CATEGORY_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
1
3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_MAIN_END
)
e
1
3
:
SetHintTiming
(
0
,
TIMING_MAIN_END
)
e3
:
SetRange
(
LOCATION_PZONE
)
e
1
3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
)
e
1
3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c1009021
.
sumcon
)
e
1
3
:
SetCondition
(
c1009021
.
sumcon
)
e3
:
SetCost
(
c1009021
.
cost
)
e
1
3
:
SetCost
(
c1009021
.
cost
)
e3
:
SetTarget
(
c1009021
.
sumtg
)
e
1
3
:
SetTarget
(
c1009021
.
sumtg
)
e3
:
SetOperation
(
c1009021
.
sumop
)
e
1
3
:
SetOperation
(
c1009021
.
sumop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e
1
3
)
--destroy
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
1009021
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
1009021
,
0
))
...
@@ -76,6 +77,9 @@ function c1009021.initial_effect(c)
...
@@ -76,6 +77,9 @@ function c1009021.initial_effect(c)
e8
:
SetOperation
(
c1009021
.
sumsuc
)
e8
:
SetOperation
(
c1009021
.
sumsuc
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c1009021
.
exrtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
(
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
or
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
))
end
function
c1009021
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1009021
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
1009021
,
4
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
1009021
,
4
))
end
end
...
...
expansions/script/c1009022.lua
View file @
00758b8b
...
@@ -74,7 +74,7 @@ function c1009022.initial_effect(c)
...
@@ -74,7 +74,7 @@ function c1009022.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c1009022
.
exrtg
(
e
,
c
)
function
c1009022
.
exrtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
(
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
or
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
)
)
end
end
function
c1009022
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1009022
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeckAsCost
()
end
...
...
expansions/script/c1009023.lua
View file @
00758b8b
...
@@ -23,13 +23,14 @@ function c1009023.initial_effect(c)
...
@@ -23,13 +23,14 @@ function c1009023.initial_effect(c)
e2
:
SetOperation
(
c1009023
.
desop
)
e2
:
SetOperation
(
c1009023
.
desop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--summon with s/t
--summon with s/t
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e11
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e11
:
SetCode
(
EFFECT_ADD_EXTRA_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e11
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetValue
(
POS_FACEUP_ATTACK
)
e11
:
SetTarget
(
c1009022
.
exrtg
)
c
:
RegisterEffect
(
e1
)
e11
:
SetValue
(
POS_FACEUP_ATTACK
)
c
:
RegisterEffect
(
e11
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
1160
)
e1
:
SetDescription
(
1160
)
...
@@ -64,6 +65,9 @@ function c1009023.initial_effect(c)
...
@@ -64,6 +65,9 @@ function c1009023.initial_effect(c)
e4
:
SetOperation
(
c1009023
.
desop2
)
e4
:
SetOperation
(
c1009023
.
desop2
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c1009023
.
exrtg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
(
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
or
c
:
IsStatus
(
STATUS_ACTIVATE_DISABLED
))
end
function
c1009023
.
cfilter
(
c
)
function
c1009023
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x520c
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x520c
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToGraveAsCost
()
end
end
...
...
expansions/script/c1009037.lua
View file @
00758b8b
...
@@ -38,15 +38,6 @@ function c1009037.initial_effect(c)
...
@@ -38,15 +38,6 @@ function c1009037.initial_effect(c)
e3
:
SetTarget
(
c1009037
.
dttg
)
e3
:
SetTarget
(
c1009037
.
dttg
)
e3
:
SetOperation
(
c1009037
.
dtop
)
e3
:
SetOperation
(
c1009037
.
dtop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetCondition
(
c1009037
.
damcon
)
e3
:
SetTarget
(
c1009037
.
damtg
)
e3
:
SetOperation
(
c1009037
.
damop
)
c
:
RegisterEffect
(
e3
)
end
end
function
c1009037
.
eqlimit
(
e
,
c
)
function
c1009037
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x20c
)
return
c
:
IsSetCard
(
0x20c
)
...
@@ -95,19 +86,3 @@ end
...
@@ -95,19 +86,3 @@ end
function
c1009037
.
dircon
(
e
)
function
c1009037
.
dircon
(
e
)
return
e
:
GetHandler
():
GetControler
()
==
e
:
GetOwnerPlayer
()
return
e
:
GetHandler
():
GetControler
()
==
e
:
GetOwnerPlayer
()
end
end
function
c1009037
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ec
=
c
:
GetPreviousEquipTarget
()
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
ec
and
ec
:
IsReason
(
REASON_DESTROY
)
end
function
c1009037
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
dam
=
e
:
GetHandler
():
GetPreviousEquipTarget
():
GetBaseAttack
()
if
dam
<
0
then
dam
=
0
end
e
:
SetLabel
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
end
function
c1009037
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
1
-
tp
,
e
:
GetLabel
(),
REASON_EFFECT
,
true
)
Duel
.
RDComplete
()
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