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
90a56480
Commit
90a56480
authored
Mar 30, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c212ddc2
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
233 additions
and
42 deletions
+233
-42
expansions/script/c11451016.lua
expansions/script/c11451016.lua
+1
-0
expansions/script/c11451017.lua
expansions/script/c11451017.lua
+6
-3
expansions/script/c11451022.lua
expansions/script/c11451022.lua
+3
-0
expansions/script/c11451024.lua
expansions/script/c11451024.lua
+3
-0
expansions/script/c11561016.lua
expansions/script/c11561016.lua
+2
-1
expansions/script/c53702500.lua
expansions/script/c53702500.lua
+13
-2
expansions/script/c53750001.lua
expansions/script/c53750001.lua
+0
-1
expansions/script/c53750003.lua
expansions/script/c53750003.lua
+0
-1
expansions/script/c53796195.lua
expansions/script/c53796195.lua
+203
-32
expansions/script/c71401002.lua
expansions/script/c71401002.lua
+2
-2
No files found.
expansions/script/c11451016.lua
View file @
90a56480
...
@@ -117,6 +117,7 @@ function cm.atktg(e,c)
...
@@ -117,6 +117,7 @@ function cm.atktg(e,c)
return
cm
.
atkfilter
(
c
)
return
cm
.
atkfilter
(
c
)
end
end
function
cm
.
atkval
(
e
,
c
)
function
cm
.
atkval
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
return
500
*
Duel
.
GetMatchingGroupCount
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
500
*
Duel
.
GetMatchingGroupCount
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
end
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c11451017.lua
View file @
90a56480
...
@@ -124,6 +124,7 @@ function cm.initial_effect(c)
...
@@ -124,6 +124,7 @@ function cm.initial_effect(c)
if
res
and
aux
.
GetValueType
(
re
)
==
"Effect"
then
if
res
and
aux
.
GetValueType
(
re
)
==
"Effect"
then
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
rc
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
and
re
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
if
rc
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
and
re
:
GetDescription
()
==
aux
.
Stringid
(
m
,
0
)
then
rc
:
ResetFlagEffect
(
m
)
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
end
end
end
end
...
@@ -217,7 +218,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -217,7 +218,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
e1
:
SetOperation
(
cm
.
rsop
)
...
@@ -240,10 +241,9 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -240,10 +241,9 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
then
rc
:
ResetFlagEffect
(
m
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
CancelToGrave
(
false
)
rc
:
CancelToGrave
(
false
)
...
@@ -261,6 +261,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -261,6 +261,8 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
mvfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
PLAYER_NONE
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
mvfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
PLAYER_NONE
,
0
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mvfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mvfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
prop
=
e
:
GetProperty
()
e
:
SetProperty
(
prop
|
EFFECT_FLAG_IGNORE_IMMUNE
)
if
tc
and
tc
:
IsControler
(
tp
)
then
if
tc
and
tc
:
IsControler
(
tp
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOZONE
)
local
s
=
Duel
.
SelectDisableField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
0
)
local
s
=
Duel
.
SelectDisableField
(
tp
,
1
,
LOCATION_MZONE
,
0
,
0
)
...
@@ -269,6 +271,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -269,6 +271,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
elseif
tc
then
elseif
tc
then
Duel
.
GetControl
(
tc
,
tp
)
Duel
.
GetControl
(
tc
,
tp
)
end
end
e
:
SetProperty
(
prop
)
end
end
function
cm
.
d2hmatchfilter
(
c
,
cd
)
function
cm
.
d2hmatchfilter
(
c
,
cd
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
cd
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
cd
)
...
...
expansions/script/c11451022.lua
View file @
90a56480
...
@@ -40,7 +40,10 @@ function cm.SpiritReturnReg(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,10 @@ function cm.SpiritReturnReg(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
):
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
local
pos
=
Duel
.
SelectPosition
(
tp
,
tc
,
0xd
&~
tc
:
GetPosition
())
local
pos
=
Duel
.
SelectPosition
(
tp
,
tc
,
0xd
&~
tc
:
GetPosition
())
local
prop
=
e
:
GetProperty
()
e
:
SetProperty
(
prop
|
EFFECT_FLAG_IGNORE_IMMUNE
)
Duel
.
ChangePosition
(
tc
,
pos
)
Duel
.
ChangePosition
(
tc
,
pos
)
e
:
SetProperty
(
prop
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
1104
)
e1
:
SetDescription
(
1104
)
...
...
expansions/script/c11451024.lua
View file @
90a56480
...
@@ -75,8 +75,11 @@ function cm.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,8 +75,11 @@ function cm.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
tc2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cpfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
tc
):
GetFirst
()
local
tc2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cpfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
tc
):
GetFirst
()
local
pos
=
tc
:
GetPosition
()
local
pos
=
tc
:
GetPosition
()
local
prop
=
e
:
GetProperty
()
e
:
SetProperty
(
prop
|
EFFECT_FLAG_IGNORE_IMMUNE
)
Duel
.
ChangePosition
(
tc
,
tc2
:
GetPosition
())
Duel
.
ChangePosition
(
tc
,
tc2
:
GetPosition
())
Duel
.
ChangePosition
(
tc2
,
pos
)
Duel
.
ChangePosition
(
tc2
,
pos
)
e
:
SetProperty
(
prop
)
end
end
function
cm
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
smfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
smfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c11561016.lua
View file @
90a56480
...
@@ -75,6 +75,7 @@ function c11561016.hxop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,6 +75,7 @@ function c11561016.hxop(e,tp,eg,ep,ev,re,r,rp)
chk
=
1
chk
=
1
end
end
end
end
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoHand
(
msg
,
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
msg
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
msg
)
Duel
.
ConfirmCards
(
1
-
tp
,
msg
)
if
a
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
a
,
nil
)
then
if
a
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
a
,
nil
)
then
...
@@ -91,7 +92,7 @@ function c11561016.hxop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -91,7 +92,7 @@ function c11561016.hxop(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
GetOperatedGroup
()
local
g2
=
Duel
.
GetOperatedGroup
()
local
a2
=
Group
.
GetCount
(
g2
)
local
a2
=
Group
.
GetCount
(
g2
)
if
not
(
a2
<
math.floor
(
a1
/
2
))
then
if
not
(
a2
<
math.floor
(
a1
/
2
))
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
end
...
...
expansions/script/c53702500.lua
View file @
90a56480
...
@@ -2824,7 +2824,14 @@ function cm.AllEffectRstop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -2824,7 +2824,14 @@ function cm.AllEffectRstop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
reg
(
sc
,
se
,
bool
)
local
e1
=
Effect
.
CreateEffect
(
sc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetRange
(
0xff
)
e1
:
SetCode
(
53702701
)
e1
:
SetLabelObject
(
se
)
reg
(
sc
,
e1
,
true
)
return
reg
(
sc
,
se
,
bool
)
end
end
--[[AD_Avoid_RegisterEffect=Duel.RegisterEffect
--[[AD_Avoid_RegisterEffect=Duel.RegisterEffect
Duel.RegisterEffect=function(...)
Duel.RegisterEffect=function(...)
...
@@ -2834,7 +2841,11 @@ function cm.AllEffectRstop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -2834,7 +2841,11 @@ function cm.AllEffectRstop(e,tp,eg,ep,ev,re,r,rp)
if
tc
.
initial_effect
then
if
tc
.
initial_effect
then
local
ini
=
cm
.
initial_effect
local
ini
=
cm
.
initial_effect
cm
.
initial_effect
=
function
()
end
cm
.
initial_effect
=
function
()
end
tc
:
ReplaceEffect
(
m
,
0
)
if
tc
:
GetFlagEffect
(
53702700
)
>
0
then
local
le
=
{
tc
:
IsHasEffect
(
53702701
)}
for
_
,
v
in
pairs
(
le
)
do
v
:
GetLabelObject
():
Reset
()
v
:
Reset
()
end
return
0
else
return
tc
:
ReplaceEffect
(
m
,
0
)
end
cm
.
initial_effect
=
ini
cm
.
initial_effect
=
ini
tc
.
initial_effect
(
tc
)
tc
.
initial_effect
(
tc
)
end
end
...
...
expansions/script/c53750001.lua
View file @
90a56480
...
@@ -15,7 +15,6 @@ function cm.initial_effect(c)
...
@@ -15,7 +15,6 @@ function cm.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetCondition
(
cm
.
tgcon
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetTarget
(
cm
.
tgtg
)
e2
:
SetOperation
(
cm
.
tgop
)
e2
:
SetOperation
(
cm
.
tgop
)
...
...
expansions/script/c53750003.lua
View file @
90a56480
...
@@ -6,7 +6,6 @@ function cm.initial_effect(c)
...
@@ -6,7 +6,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCost
(
cm
.
regcost
)
e1
:
SetCost
(
cm
.
regcost
)
e1
:
SetTarget
(
cm
.
regtg
)
e1
:
SetTarget
(
cm
.
regtg
)
...
...
expansions/script/c53796195.lua
View file @
90a56480
This diff is collapsed.
Click to expand it.
expansions/script/c71401002.lua
View file @
90a56480
...
@@ -33,9 +33,9 @@ function c71401002.filter2a(c)
...
@@ -33,9 +33,9 @@ function c71401002.filter2a(c)
end
end
function
c71401002
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71401002
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
check
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
return
Duel
.
IsExistingMatchingCard
(
c71401002
.
filter2a
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c71401002
.
filter2a
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
c71401002
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
,
check
)
end
end
return
true
end
end
function
c71401002
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71401002
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
check
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
local
check
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
...
...
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