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
Soulgamer
ygopro-222DIY-cards
Commits
214ecad2
Commit
214ecad2
authored
Nov 30, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
8e369d2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
expansions/script/c20100612.lua
expansions/script/c20100612.lua
+1
-1
expansions/script/c20100618.lua
expansions/script/c20100618.lua
+1
-1
expansions/script/c33711405.lua
expansions/script/c33711405.lua
+17
-2
No files found.
expansions/script/c20100612.lua
View file @
214ecad2
...
...
@@ -91,7 +91,7 @@ end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
GetFlagEffect
(
m
+
1
)
~=
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
))
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
...
...
expansions/script/c20100618.lua
View file @
214ecad2
...
...
@@ -8,7 +8,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCount
er
Limit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
...
...
expansions/script/c33711405.lua
View file @
214ecad2
...
...
@@ -27,6 +27,10 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
if
not
cm
.
Decla
then
cm
.
Decla
=
true
cm
.
Declatable
=
{}
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -54,6 +58,7 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
c
=
e
:
GetHandler
()
cm
.
Declatable
[
#
cm
.
Declatable
+
1
]
=
ac
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -68,10 +73,20 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
rmfilter
(
c
,
code
)
return
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCode
(
code
)
local
code1
,
code2
=
c
:
GetOriginalCodeRule
()
return
c
:
IsAbleToRemoveAsCost
()
and
(
cm
.
include
(
code1
,
cm
.
Declatable
)
or
cm
.
include
(
code2
,
cm
.
Declatable
))
end
function
cm
.
include
(
value
,
tab
)
if
not
value
then
return
false
end
if
tab
==
nil
then
return
false
end
for
k
,
v
in
ipairs
(
tab
)
do
if
v
==
value
then
return
true
end
end
return
false
end
function
cm
.
effcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
code
=
e
:
GetLabelObject
():
GetLabel
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
code
)
and
not
e
:
GetHandler
():
IsControler
(
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
code
)
...
...
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