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
85c61516
Commit
85c61516
authored
Oct 27, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5be0dfe5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
28 deletions
+48
-28
expansions/script/c11451510.lua
expansions/script/c11451510.lua
+35
-14
expansions/script/c11451547.lua
expansions/script/c11451547.lua
+3
-5
expansions/script/c22050140.lua
expansions/script/c22050140.lua
+6
-5
expansions/script/c22050480.lua
expansions/script/c22050480.lua
+2
-2
expansions/script/c31409101.lua
expansions/script/c31409101.lua
+1
-1
expansions/script/c60002022.lua
expansions/script/c60002022.lua
+1
-1
No files found.
expansions/script/c11451510.lua
View file @
85c61516
...
@@ -61,12 +61,21 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,12 +61,21 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
cm
[
tc
]
=
e1
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_XYZ_LEVEL
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetValue
(
6
)
e2
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
tc
:
RegisterEffect
(
e2
,
true
)
cm
[
tc
]
=
{
e1
,
e2
}
end
end
local
res
=
Duel
.
IsExistingMatchingCard
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
g
,
tp
)
local
res
=
Duel
.
IsExistingMatchingCard
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
g
,
tp
)
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
tc
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
tc
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
cm
[
tc
]:
Reset
()
for
_
,
se
in
pairs
(
cm
[
tc
])
do
se
:
Reset
()
end
end
end
return
res
return
res
end
end
...
@@ -96,16 +105,23 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,16 +105,23 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
cm
[
tc
]
=
e1
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_XYZ_LEVEL
)
e2
:
SetCode
(
EVENT_MOVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetValue
(
6
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
e2
:
SetOperation
(
cm
.
adjustop
)
tc
:
RegisterEffect
(
e2
,
true
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
cm
[
tc
]
=
{
e1
,
e2
}
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EVENT_MOVE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetOperation
(
cm
.
adjustop
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
local
xyzg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
g
,
tp
)
local
xyzg
=
Duel
.
GetMatchingGroup
(
cm
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
g
,
tp
)
if
#
xyzg
>
0
then
if
#
xyzg
>
0
then
...
@@ -115,15 +131,20 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -115,15 +131,20 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
else
else
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
tc
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
tc
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
cm
[
tc
]:
Reset
()
for
_
,
se
in
pairs
(
cm
[
tc
])
do
se
:
Reset
()
end
end
end
end
end
end
end
function
cm
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
tc
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
tc
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
local
te
=
cm
[
tc
]
if
cm
[
tc
]
and
aux
.
GetValueType
(
cm
[
tc
])
==
"table"
then
if
te
and
aux
.
GetValueType
(
te
)
==
"Effect"
then
te
:
Reset
()
end
for
_
,
se
in
pairs
(
cm
[
tc
])
do
se
:
Reset
()
end
end
e
:
Reset
()
e
:
Reset
()
end
end
function
cm
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c11451547.lua
View file @
85c61516
...
@@ -134,6 +134,7 @@ function cm.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -134,6 +134,7 @@ function cm.efop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCategory
(
te
:
GetCategory
())
e1
:
SetCategory
(
te
:
GetCategory
())
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_BOTH_SIDE
)
if
con
then
e1
:
SetCondition
(
con
)
end
if
con
then
e1
:
SetCondition
(
con
)
end
e1
:
SetCost
(
cm
.
addcost
)
e1
:
SetCost
(
cm
.
addcost
)
if
tg
then
e1
:
SetTarget
(
tg
)
end
if
tg
then
e1
:
SetTarget
(
tg
)
end
...
@@ -145,12 +146,8 @@ function cm.addcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -145,12 +146,8 @@ function cm.addcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
xc
=
c
:
GetOverlayTarget
()
local
xc
=
c
:
GetOverlayTarget
()
e
:
SetLabelObject
(
xc
)
return
c
:
IsLocation
(
LOCATION_OVERLAY
)
and
xc
:
IsHasEffect
(
m
)
and
xc
:
IsControler
(
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
return
c
:
IsLocation
(
LOCATION_OVERLAY
)
and
xc
:
IsHasEffect
(
m
)
and
xc
:
IsControler
(
tp
)
end
end
local
tc
=
e
:
GetLabelObject
()
tc
:
RegisterFlagEffect
(
m
+
1
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
SetLabelObject
(
nil
)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
+
1
)
==
0
return
e
:
GetHandler
():
GetFlagEffect
(
m
+
1
)
==
0
...
@@ -164,6 +161,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -164,6 +161,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
te
=
e
:
GetLabelObject
()
local
te
=
e
:
GetLabelObject
()
local
tc
=
te
:
GetHandler
()
local
tc
=
te
:
GetHandler
()
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
false
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
false
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
+
1
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
:
CreateEffectRelation
(
te
)
tc
:
CreateEffectRelation
(
te
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c22050140.lua
View file @
85c61516
...
@@ -26,14 +26,14 @@ function c22050140.initial_effect(c)
...
@@ -26,14 +26,14 @@ function c22050140.initial_effect(c)
--negate
--negate
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
22050140
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
22050140
,
1
))
e3
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DESTROY
)
e3
:
SetCategory
(
CATEGORY_NEGATE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
22050140
)
e3
:
SetCountLimit
(
1
,
22050140
)
e3
:
SetCondition
(
c22050140
.
condition
)
e3
:
SetCondition
(
c22050140
.
condition
)
e3
:
SetCost
(
c22050140
.
cost
)
e3
:
SetCost
(
c22050140
.
cost
1
)
e3
:
SetTarget
(
c22050140
.
target
)
e3
:
SetTarget
(
c22050140
.
target
)
e3
:
SetOperation
(
c22050140
.
operation
)
e3
:
SetOperation
(
c22050140
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -45,6 +45,7 @@ function c22050140.initial_effect(c)
...
@@ -45,6 +45,7 @@ function c22050140.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
22050141
)
e4
:
SetCountLimit
(
1
,
22050141
)
e4
:
SetCost
(
c22050140
.
cost
)
e4
:
SetTarget
(
c22050140
.
destg
)
e4
:
SetTarget
(
c22050140
.
destg
)
e4
:
SetOperation
(
c22050140
.
desop
)
e4
:
SetOperation
(
c22050140
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -59,10 +60,10 @@ function c22050140.ctop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,10 +60,10 @@ function c22050140.ctop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c22050140
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22050140
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
(
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c22050140
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22050140
.
cost
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0xfec
,
2
,
REASON_COST
)
end
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0xfec
,
2
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0xfec
,
2
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0xfec
,
2
,
REASON_COST
)
end
end
...
...
expansions/script/c22050480.lua
View file @
85c61516
...
@@ -23,10 +23,10 @@ function c22050480.initial_effect(c)
...
@@ -23,10 +23,10 @@ function c22050480.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e3
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0xfe
,
0xff
)
e3
:
SetTargetRange
(
0xfe
,
0xff
)
e3
:
SetValue
(
LOCATION_DECK
)
e3
:
SetValue
(
LOCATION_DECK
SHF
)
e3
:
SetTarget
(
c22050480
.
rmtg
)
e3
:
SetTarget
(
c22050480
.
rmtg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
...
expansions/script/c31409101.lua
View file @
85c61516
...
@@ -136,7 +136,7 @@ function cm.adfilter(c)
...
@@ -136,7 +136,7 @@ function cm.adfilter(c)
end
end
function
cm
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
adfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
adfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
>
0
and
Duel
.
IsExistingTarget
(
cm
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
cm
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
cm
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
...
...
expansions/script/c60002022.lua
View file @
85c61516
...
@@ -53,7 +53,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetLabel
(
tc
:
GetCode
())
e1
:
SetLabel
(
tc
:
GetCode
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
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