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
7120d48b
Commit
7120d48b
authored
Aug 15, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
dc6b6308
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
expansions/script/c12034000.lua
expansions/script/c12034000.lua
+6
-5
expansions/script/c12038005.lua
expansions/script/c12038005.lua
+5
-5
No files found.
expansions/script/c12034000.lua
View file @
7120d48b
...
...
@@ -65,17 +65,17 @@ function sr_kmmm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
b2
=
(
Duel
.
IsPlayerCanDraw
(
tp
,
2
))
if
chk
==
0
then
local
chkf
=
tp
local
mg
=
Duel
.
GetFusionMaterial
(
tp
)
local
mg
=
Duel
.
GetFusionMaterial
(
tp
,
LOCATION_MZONE
+
LOCATION_HAND
)
local
mg1
=
Duel
.
GetMatchingGroup
(
sr_kmmm
.
mfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
c
)
mg
:
Merge
(
mg1
)
if
c
:
IsCode
(
12034003
)
then
local
mg0
=
mg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_
ONFIELD
)
local
mg0
=
mg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_
MZONE
)
mg
:
Sub
(
mg0
)
end
local
res
=
Duel
.
IsExistingMatchingCard
(
sr_kmmm
.
spfilter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
nil
,
chkf
)
if
res
then
return
true
end
if
not
res
and
c
:
IsCode
(
12034002
)
then
local
mg2
=
Duel
.
GetMatchingGroup
(
sr_kmmm
.
mfilter1
,
tp
,
0
,
LOCATION_
ONFIELD
,
nil
):
Filter
(
sr_kmmm
.
mfilter_im
,
nil
,
e
)
local
mg2
=
Duel
.
GetMatchingGroup
(
sr_kmmm
.
mfilter1
,
tp
,
0
,
LOCATION_
MZONE
,
nil
):
Filter
(
sr_kmmm
.
mfilter_im
,
nil
,
e
)
mg
:
Merge
(
mg2
)
local
res1
=
Duel
.
IsExistingMatchingCard
(
sr_kmmm
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
nil
,
chkf
)
res
=
res1
...
...
@@ -126,8 +126,8 @@ function sr_kmmm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
local
chkf
=
tp
local
mg
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
sr_kmmm
.
filter1
,
nil
,
e
)
local
mg1
=
Duel
.
GetMatchingGroup
(
sr_kmmm
.
mfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_
ONFIELD
,
0
,
c
)
local
mg
=
Duel
.
GetFusionMaterial
(
tp
,
LOCATION_MZONE
+
LOCATION_HAND
):
Filter
(
sr_kmmm
.
filter1
,
nil
,
e
)
local
mg1
=
Duel
.
GetMatchingGroup
(
sr_kmmm
.
mfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_
MZONE
,
0
,
c
)
mg
:
Merge
(
mg1
)
local
mg3
=
Group
.
FromCards
()
local
sg3
=
nil
...
...
@@ -240,6 +240,7 @@ function sr_kmmm.spop1(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
m
,
0xfa3
,
0x11
,
1400
,
0
,
4
,
RACE_BEAST
,
ATTRIBUTE_FIRE
)
then
--c:AddMonsterAttribute(TYPE_SPELL+TYPE_EFFECT)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
local
iss
=
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
--redirect
...
...
expansions/script/c12038005.lua
View file @
7120d48b
...
...
@@ -85,20 +85,20 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
return
true
end
function
cm
.
filter
(
c
,
rc
)
return
c
:
IsAbleToHand
()
and
c
:
IsCode
(
rc
:
GetCode
())
and
not
c
:
IsCode
(
table.unpack
(
Srprzm_setback
))
return
c
:
IsAbleToHand
()
and
c
:
IsCode
(
rc
:
GetCode
())
and
not
r
c
:
IsCode
(
table.unpack
(
Srprzm_setback
))
end
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rc
=
re
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
rc
,
rc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
0
)
Srprzm_setback
[
#
Srprzm_setback
+
1
]
=
rc
:
GetCode
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
0
)
end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
1
,
1
,
rc
,
rc
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Srprzm_setback
[
#
Srprzm_setback
+
1
]
=
rc
:
GetCode
()
end
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