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
c4537df5
Commit
c4537df5
authored
Jul 15, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3b31cdfc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
34 deletions
+29
-34
expansions/script/c11451537.lua
expansions/script/c11451537.lua
+3
-1
expansions/script/c25000089.lua
expansions/script/c25000089.lua
+1
-1
expansions/script/c40009386.lua
expansions/script/c40009386.lua
+23
-30
expansions/script/c72410280.lua
expansions/script/c72410280.lua
+2
-2
No files found.
expansions/script/c11451537.lua
View file @
c4537df5
...
...
@@ -120,7 +120,9 @@ function cm.otcon(e,c,minc)
if
ct
==
0
then
return
false
end
local
tp
=
c
:
GetControler
()
local
mi
,
ma
=
c
:
GetTributeRequirement
()
return
minc
<=
ma
and
((
math.max
(
mi
,
minc
)
<=
ct
and
Duel
.
GetMZoneCount
(
tp
)
>
0
)
or
Duel
.
CheckTribute
(
c
,
math.max
(
1
,
math.max
(
mi
,
minc
)
-
ct
)))
Debug
.
Message
(
mi
)
Debug
.
Message
(
ma
)
return
ma
>
0
and
minc
<=
ma
and
((
math.max
(
mi
,
minc
)
<=
ct
and
Duel
.
GetMZoneCount
(
tp
)
>
0
)
or
Duel
.
CheckTribute
(
c
,
math.max
(
1
,
math.max
(
mi
,
minc
)
-
ct
)))
end
function
cm
.
fselect
(
g
)
return
Duel
.
GetMZoneCount
(
tp
,
g
)
>
0
...
...
expansions/script/c25000089.lua
View file @
c4537df5
...
...
@@ -25,7 +25,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
fdzone
=
fdzone
|
exzone
local
g
=
Duel
.
GetMatchingGroup
(
function
(
c
)
return
c
:
GetSequence
()
>
4
end
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
#
g
>
0
and
(
Duel
.
GetMatchingGroupCount
(
function
(
c
)
return
c
:
GetSequence
()
<
5
end
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
==
0
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
)
))
then
local
b1
,
b2
=
0
,
0
for
tc
in
aux
.
Next
(
g
)
do
if
tc
:
GetSequence
()
==
5
then
b2
=
1
end
...
...
expansions/script/c40009386.lua
View file @
c4537df5
--宇宙勇机 敌阵突破
local
m
=
40009386
local
cm
=
_G
[
"c"
..
m
]
cm
.
named_with_CosmosHero
=
1
function
cm
.
CosmosHero
(
c
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
return
m
and
m
.
named_with_CosmosHero
end
function
cm
.
initial_effect
(
c
)
function
c40009386
.
initial_effect
(
c
)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
40009386
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_TOHAND
+
TIMINGS_CHECK_MONSTER
)
--e1:SetCost(c
m
.cost)
e1
:
SetTarget
(
c
m
.
target
)
e1
:
SetOperation
(
c
m
.
activate
)
--e1:SetCost(c
40009386
.cost)
e1
:
SetTarget
(
c
40009386
.
target
)
e1
:
SetOperation
(
c
40009386
.
activate
)
c
:
RegisterEffect
(
e1
)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
40009386
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -28,34 +21,34 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c
m
.
atktg
)
e2
:
SetOperation
(
c
m
.
atkop
)
e2
:
SetTarget
(
c
40009386
.
atktg
)
e2
:
SetOperation
(
c
40009386
.
atkop
)
c
:
RegisterEffect
(
e2
)
end
function
c
m
.
costfilter
(
c
,
matk
)
return
c
:
IsAtt
ribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAttackAbove
(
matk
)
and
c
:
IsFaceup
()
and
cm
.
CosmosHero
(
c
)
function
c
40009386
.
costfilter
(
c
,
matk
)
return
c
:
IsAtt
ackAbove
(
matk
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1f1b
)
end
--function c
m
.cost(e,tp,eg,ep,ev,re,r,rp,chk)
--function c
40009386
.cost(e,tp,eg,ep,ev,re,r,rp,chk)
--e:SetLabel(100)
--return true
--end
function
c
m
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
40009386
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
dc
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
+
LOCATION_ONFIELD
)
local
matk
=
math.min
(
2000
,
dc
*
2000
)
if
chk
==
0
then
--if e:GetLabel()~=100 then return false end
-- e:SetLabel(0)
return
matk
>
0
and
Duel
.
IsExistingTarget
(
c
m
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
matk
)
--Duel.CheckReleaseGroup(tp,cm
.costfilter,1,nil,matk)
return
matk
>
0
and
Duel
.
IsExistingTarget
(
c
40009386
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
matk
)
--Duel.CheckReleaseGroup(tp,c40009386
.costfilter,1,nil,matk)
end
-- local g=Duel.SelectReleaseGroup(tp,c
m
.costfilter,1,1,nil,matk)
local
g
=
Duel
.
SelectTarget
(
tp
,
c
m
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
matk
)
-- local g=Duel.SelectReleaseGroup(tp,c
40009386
.costfilter,1,1,nil,matk)
local
g
=
Duel
.
SelectTarget
(
tp
,
c
40009386
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
matk
)
local
atk
=
g
:
GetFirst
():
GetAttack
()
--e:SetLabel(atk)
--Duel.Release(g,REASON_COST)
local
ct
=
math.floor
(
atk
/
2000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
ct
,
1
-
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
)
end
function
c
m
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
40009386
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
atk
=
tc
:
GetAttack
()
...
...
@@ -68,16 +61,16 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c
m
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
m
.
CosmosHero
(
c
)
function
c
40009386
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1f1b
)
end
function
c
m
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c
m
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c
m
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c
40009386
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c
40009386
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c
40009386
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c
m
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c
40009386
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c
m
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
40009386
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
expansions/script/c72410280.lua
View file @
c4537df5
...
...
@@ -14,7 +14,7 @@ function c72410280.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
72410280
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
72410281
)
e2
:
SetCondition
(
c72410280
.
retcon
)
...
...
@@ -56,7 +56,7 @@ end
function
c72410280
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
then
return
false
end
local
rc
=
re
:
GetHandler
()
return
rc
:
IsType
(
TYPE_SPELL
)
and
rc
:
IsType
(
TYPE_CONTINUOUS
)
return
(
rc
:
IsType
(
TYPE_SPELL
)
and
rc
:
IsType
(
TYPE_CONTINUOUS
))
or
rc
==
e
:
GetHandler
(
)
end
function
c72410280
.
filter
(
c
)
local
thchk
=
Duel
.
IsEnvironment
(
56433456
)
...
...
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