Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Huangnan
no81cards
Commits
a073acd2
Commit
a073acd2
authored
Aug 08, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
2efbaae4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
expansions/script/c11451499.lua
expansions/script/c11451499.lua
+2
-0
expansions/script/c11451541.lua
expansions/script/c11451541.lua
+11
-9
No files found.
expansions/script/c11451499.lua
View file @
a073acd2
...
...
@@ -172,4 +172,6 @@ function cm.sortop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
if
#
mg
[
2
]
>
0
then
Duel
.
ConfirmCards
(
tp
,
mg
[
2
])
end
if
#
mg
[
1
]
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
mg
[
1
])
end
end
\ No newline at end of file
expansions/script/c11451541.lua
View file @
a073acd2
...
...
@@ -137,36 +137,38 @@ function cm.scop(e,tp,eg,ep,ev,re,r,rp)
local
ac
=
g
:
GetFirst
()
local
bc
=
g
:
GetNext
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
eid
=
e1
:
GetFieldID
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetLabel
(
eid
)
e1
:
SetCondition
(
cm
.
con
)
if
ac
:
IsAttribute
(
bc
:
GetAttribute
())
and
(
ac
:
GetAttribute
()
==
bc
:
GetAttribute
()
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
2
),
aux
.
Stringid
(
m
,
3
))
==
0
)
then
ac
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
2
))
bc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
2
))
ac
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
eid
,
aux
.
Stringid
(
m
,
2
))
bc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
eid
,
aux
.
Stringid
(
m
,
2
))
e1
:
SetTarget
(
cm
.
sumlimit
)
else
ac
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
3
))
bc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
3
))
ac
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
eid
,
aux
.
Stringid
(
m
,
3
))
bc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
eid
,
aux
.
Stringid
(
m
,
3
))
e1
:
SetTarget
(
cm
.
sumlimit2
)
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
cfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetFlagEffect
(
m
)
~=
0
function
cm
.
cfilter2
(
c
,
eid
)
return
c
:
IsFaceup
()
and
c
:
GetFlagEffect
(
m
)
~=
0
and
c
:
GetFlagEffectLabel
(
m
)
==
eid
end
function
cm
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
:
GetLabel
()
)
end
function
cm
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
e
:
GetLabel
()
)
local
ac
=
g
:
GetFirst
()
local
bc
=
g
:
GetNext
()
return
not
(
c
:
IsAttribute
(
ac
:
GetAttribute
())
and
(
not
bc
or
c
:
IsAttribute
(
bc
:
GetAttribute
())))
end
function
cm
.
sumlimit2
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
cfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
e
:
GetLabel
()
)
local
ac
=
g
:
GetFirst
()
local
bc
=
g
:
GetNext
()
return
not
(
not
c
:
IsAttribute
(
ac
:
GetAttribute
())
and
(
not
bc
or
not
c
:
IsAttribute
(
bc
:
GetAttribute
())))
...
...
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