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
Nemo Ma
no81cards
Commits
04fc15c0
Commit
04fc15c0
authored
Aug 25, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
98e7eeed
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
20 deletions
+30
-20
expansions/script/c11451435.lua
expansions/script/c11451435.lua
+8
-1
expansions/script/c11451545.lua
expansions/script/c11451545.lua
+3
-3
expansions/script/c11451639.lua
expansions/script/c11451639.lua
+1
-1
expansions/script/c11451733.lua
expansions/script/c11451733.lua
+4
-1
expansions/script/c25000031.lua
expansions/script/c25000031.lua
+14
-14
No files found.
expansions/script/c11451435.lua
View file @
04fc15c0
...
...
@@ -18,6 +18,10 @@ function cm.lvsum(c,e,tp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
return
g
:
GetSum
(
Card
.
GetLevel
)
end
function
cm
.
lvsum2
(
c
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
return
g
:
GetSum
(
Card
.
GetLevel
)
end
function
cm
.
adcon
(
e
,
c
)
return
cm
.
lvsum
(
c
,
e
,
tp
)
~=
0
end
...
...
@@ -29,12 +33,15 @@ end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
(
cm
.
lvsum
(
c
,
e
,
tp
)
%
c
:
GetLevel
()
==
0
)
end
function
cm
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
(
cm
.
lvsum2
(
c
,
e
,
tp
)
%
c
:
GetLevel
()
==
0
)
end
function
cm
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
==
0
then
return
end
local
ct
=
math.min
(
2
,
g
:
GetClassCount
(
Card
.
GetLevel
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
expansions/script/c11451545.lua
View file @
04fc15c0
...
...
@@ -75,8 +75,8 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
return
rp
==
tp
and
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
:
GetEquipTarget
()
==
rc
)
or
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
rc
:
IsSetCard
(
0x129
)
and
rc
~=
c
))
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x129
)
function
cm
.
matfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x129
)
and
(
c
:
IsControler
(
tp
)
or
not
c
:
IsImmuneToEffect
(
e
))
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
--local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
...
...
@@ -86,7 +86,7 @@ end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
matfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
matfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsLinkSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
mg
)
local
tc
=
g
:
GetFirst
()
...
...
expansions/script/c11451639.lua
View file @
04fc15c0
...
...
@@ -21,7 +21,7 @@ function cm.initial_effect(c)
end
function
cm
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
tc
in
aux
.
Next
(
eg
)
do
if
tc
:
IsPreviousLocation
(
LOCATION_REMOVED
)
and
tc
:
IsPreviousPosition
(
POS_FACEDOWN
)
then
if
tc
:
IsPreviousLocation
(
LOCATION_REMOVED
)
and
tc
:
IsPreviousPosition
(
POS_FACEDOWN
)
and
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
RegisterFlagEffect
(
0
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
...
...
expansions/script/c11451733.lua
View file @
04fc15c0
...
...
@@ -126,7 +126,10 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
_SendtoGrave
=
Duel
.
SendtoGrave
Duel
.
SendtoGrave
=
function
(
g
,
r
)
if
r
==
REASON_MATERIAL
+
REASON_SYNCHRO
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
r
)
local
rg
=
g
:
Filter
(
Card
.
IsAbleToRemove
,
nil
,
tp
,
POS_FACEUP
,
REASON_MATERIAL
+
REASON_SYNCHRO
)
g
:
Sub
(
rg
)
_SendtoGrave
(
g
,
r
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
r
)
Duel
.
SendtoGrave
=
_SendtoGrave
else
_SendtoGrave
(
g
,
r
)
...
...
expansions/script/c25000031.lua
View file @
04fc15c0
...
...
@@ -74,13 +74,13 @@ function c25000031.xxop2(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
t
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
end
end
...
...
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