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
6e69ecf7
Commit
6e69ecf7
authored
Mar 25, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tnndx
parent
9478999b
Pipeline
#2734
passed with stages
in 24 minutes and 35 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
expansions/script/c9910501.lua
expansions/script/c9910501.lua
+5
-3
expansions/script/c9910507.lua
expansions/script/c9910507.lua
+11
-7
expansions/script/c9910510.lua
expansions/script/c9910510.lua
+1
-1
expansions/script/c9910515.lua
expansions/script/c9910515.lua
+4
-3
No files found.
expansions/script/c9910501.lua
View file @
6e69ecf7
...
...
@@ -29,21 +29,23 @@ function c9910501.descon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetAttack
()
>
e
:
GetHandler
():
GetBaseAttack
()
end
function
c9910501
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
e
:
SetLabel
(
c
:
GetAttack
()
-
c
:
GetBaseAttack
())
end
function
c9910501
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
label
=
e
:
GetLabel
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
local
diff
=
math.abs
(
c
:
GetBaseAttack
()
-
c
:
GetAttack
())
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
label
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
diff
)
e1
:
SetValue
(
-
label
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
end
...
...
expansions/script/c9910507.lua
View file @
6e69ecf7
...
...
@@ -58,25 +58,29 @@ function c9910507.spfilter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
false
)
end
function
c9910507
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c9910507
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
e
:
SetLabel
(
c
:
GetAttack
()
-
c
:
GetBaseAttack
())
end
function
c9910507
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
label
=
e
:
GetLabel
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9910507
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
tc
:
CompleteProcedure
()
local
diff
=
math.abs
(
c
:
GetBaseAttack
()
-
c
:
GetAttack
())
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
diff
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
if
label
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
label
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
end
end
end
function
c9910507
.
atkfilter
(
c
)
...
...
expansions/script/c9910510.lua
View file @
6e69ecf7
...
...
@@ -79,7 +79,7 @@ function c9910510.costfilter(c)
end
function
c9910510
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
c9910510
.
costfilter
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RELEASE
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
c9910510
.
costfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
expansions/script/c9910515.lua
View file @
6e69ecf7
...
...
@@ -32,6 +32,7 @@ function c9910515.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
c
:
IsFaceup
()
then
g
:
AddCard
(
c
)
end
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
e
:
SetLabel
(
c
:
GetAttack
()
-
c
:
GetBaseAttack
())
end
function
c9910515
.
spfilter
(
c
,
e
,
tp
,
sum
)
return
c
:
GetType
()
&
0x81
==
0x81
and
c
:
IsSetCard
(
0xa950
)
and
c
:
IsAttackBelow
(
sum
)
...
...
@@ -39,8 +40,8 @@ function c9910515.spfilter(c,e,tp,sum)
end
function
c9910515
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
diff
=
math.abs
(
c
:
GetBaseAttack
()
-
c
:
GetAttack
()
)
if
diff
=
=
0
then
return
end
local
label
=
e
:
GetLabel
(
)
if
label
<
=
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
local
sum
=
0
...
...
@@ -52,7 +53,7 @@ function c9910515.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
-
diff
)
e1
:
SetValue
(
-
label
)
sc
:
RegisterEffect
(
e1
)
if
sc
:
GetAttack
()
<
preatk
then
sum
=
sum
+
preatk
-
sc
:
GetAttack
()
end
sc
=
g
:
GetNext
()
...
...
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