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
6d775ba3
Commit
6d775ba3
authored
Jul 04, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1145141919810
parent
149299e8
Pipeline
#14424
passed with stages
in 33 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
22 deletions
+111
-22
expansions/script/c14700055.lua
expansions/script/c14700055.lua
+80
-22
expansions/script/c14700056.lua
expansions/script/c14700056.lua
+31
-0
No files found.
expansions/script/c14700055.lua
View file @
6d775ba3
--天子-杏树
local
m
=
14700055
local
cm
=
_G
[
"c"
..
m
]
--2022/07/04 16:30 修复内容:未适用「集结于铁扇之下」效果的问题
function
cm
.
initial_effect
(
c
)
--splimit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -13,36 +14,63 @@ function cm.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCondition
(
cm
.
sscon
)
e2
:
SetTarget
(
cm
.
sstg
)
e2
:
SetOperation
(
cm
.
ssop
)
c
:
RegisterEffect
(
e2
)
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
m
+
2
)
e3
:
SetCondition
(
cm
.
con
)
e3
:
SetTarget
(
cm
.
tg
)
e3
:
SetOperation
(
cm
.
op
)
local
e3
=
e2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_MAIN_PHASE
)
e3
:
SetCondition
(
cm
.
sscon2
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e7
:
SetType
(
EFFECT_TYPE_IGNITION
)
e7
:
SetRange
(
LOCATION_GRAVE
)
e7
:
SetCountLimit
(
1
,
m
)
e7
:
SetCondition
(
cm
.
sscon3
)
e7
:
SetTarget
(
cm
.
sstg
)
e7
:
SetOperation
(
cm
.
ssop
)
c
:
RegisterEffect
(
e7
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e4
:
SetCountLimit
(
1
,
m
+
2
)
e4
:
SetCondition
(
cm
.
con
)
e4
:
SetTarget
(
cm
.
tg
)
e4
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e4
)
--battle destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_DESTROY
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_BATTLE_START
)
e5
:
SetCountLimit
(
1
,
m
+
3
)
e5
:
SetTarget
(
cm
.
destg
)
e5
:
SetOperation
(
cm
.
desop
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e5
)
--battle destroy
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
CATEGORY_DESTROY
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_BATTLE_START
)
e6
:
SetCountLimit
(
1
,
m
+
3
)
e6
:
SetTarget
(
cm
.
destg
)
e6
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e6
)
--atk
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e8
:
SetCondition
(
cm
.
fdadupcon
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetValue
(
800
)
c
:
RegisterEffect
(
e8
)
local
e9
=
e8
:
Clone
()
e9
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e9
)
end
--splimit
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
...
...
@@ -50,12 +78,26 @@ function cm.splimit(e,se,sp,st)
end
--spsummon
function
cm
.
filter
(
c
)
return
c
:
IsCode
(
14700022
)
or
c
:
IsCode
(
14700030
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
14700028
)
end
function
cm
.
filter2
(
c
)
return
c
:
IsCode
(
14700022
)
or
c
:
IsCode
(
14700030
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
14700028
)
end
function
cm
.
filter3
(
c
)
return
c
:
IsCode
(
14700022
)
or
c
:
IsCode
(
14700030
)
end
function
cm
.
sscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
sscon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
sscon3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter3
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
...
...
@@ -106,4 +148,20 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Group
.
FromCards
(
c
,
tc
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
function
cm
.
adupfilter1
(
c
,
g
)
return
g
:
IsContains
(
c
)
and
c
:
IsSetCard
(
0x2e2
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
adupfilter2
(
c
,
seq
)
local
seq2
=
c
:
GetSequence
()
return
c
:
IsSetCard
(
0x2e2
)
and
seq
<
5
and
seq2
<
5
and
math.abs
(
seq
-
seq2
)
==
1
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
fdadupcon
(
e
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
seq
=
c
:
GetSequence
()
local
tp
=
c
:
GetControler
()
local
cg
=
c
:
GetColumnGroup
()
return
(
Duel
.
IsExistingMatchingCard
(
cm
.
adupfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
cg
)
or
Duel
.
IsExistingMatchingCard
(
cm
.
adupfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
seq
))
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
14700028
)
end
\ No newline at end of file
expansions/script/c14700056.lua
View file @
6d775ba3
--天子-久远
local
m
=
14700056
local
cm
=
_G
[
"c"
..
m
]
--2022/07/04 16:30 修复内容:未适用「集结于铁扇之下」效果的问题
function
cm
.
initial_effect
(
c
)
--change name
aux
.
EnableChangeCode
(
c
,
14700023
,
LOCATION_DECK
)
--splimit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -31,6 +34,18 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
kuontg
)
e3
:
SetOperation
(
cm
.
kuonop
)
c
:
RegisterEffect
(
e3
)
--atk
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e7
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e7
:
SetCondition
(
cm
.
fdadupcon
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetValue
(
300
)
c
:
RegisterEffect
(
e7
)
local
e8
=
e7
:
Clone
()
e8
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e8
)
end
--splimit
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
...
...
@@ -81,4 +96,20 @@ function cm.kuonop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
adupfilter1
(
c
,
g
)
return
g
:
IsContains
(
c
)
and
c
:
IsSetCard
(
0x2e2
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
adupfilter2
(
c
,
seq
)
local
seq2
=
c
:
GetSequence
()
return
c
:
IsSetCard
(
0x2e2
)
and
seq
<
5
and
seq2
<
5
and
math.abs
(
seq
-
seq2
)
==
1
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
fdadupcon
(
e
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
seq
=
c
:
GetSequence
()
local
tp
=
c
:
GetControler
()
local
cg
=
c
:
GetColumnGroup
()
return
(
Duel
.
IsExistingMatchingCard
(
cm
.
adupfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
cg
)
or
Duel
.
IsExistingMatchingCard
(
cm
.
adupfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
seq
))
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
14700028
)
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