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
4245856d
Commit
4245856d
authored
Nov 30, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2914ffd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
expansions/script/c13254046.lua
expansions/script/c13254046.lua
+1
-1
expansions/script/c13254064.lua
expansions/script/c13254064.lua
+1
-1
expansions/script/c33711405.lua
expansions/script/c33711405.lua
+17
-2
No files found.
expansions/script/c13254046.lua
View file @
4245856d
...
...
@@ -72,7 +72,7 @@ function cm.cfilter1(c)
end
function
cm
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
return
g
:
FilterCount
(
cfilter1
,
nil
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
return
g
:
FilterCount
(
c
m
.
c
filter1
,
nil
)
==
g
:
GetCount
()
and
g
:
GetClassCount
(
Card
.
GetCode
)
==
g
:
GetCount
()
end
function
cm
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
~=
0
...
...
expansions/script/c13254064.lua
View file @
4245856d
...
...
@@ -26,7 +26,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
local
sg
=
tama
.
tamas_selectElementsMaterial
(
mg
,
el
,
tp
)
local
ct
=
tama
.
tamas_getElementCount
(
tama
.
tamas_sumElements
(
sg
),
TAMA_ELEMENT_FIRE
)
local
ct1
=
tama
.
tamas_getElementCount
(
tamas_sumElements
(
sg
),
TAMA_ELEMENT_EARTH
)
-
0
local
ct1
=
tama
.
tamas_getElementCount
(
tama
.
tama
s_sumElements
(
sg
),
TAMA_ELEMENT_EARTH
)
-
0
e
:
SetLabel
(
ct
,
ct1
)
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_COST
)
end
...
...
expansions/script/c33711405.lua
View file @
4245856d
...
...
@@ -27,6 +27,10 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
sptg
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
if
not
cm
.
Decla
then
cm
.
Decla
=
true
cm
.
Declatable
=
{}
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -54,6 +58,7 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ac
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
c
=
e
:
GetHandler
()
cm
.
Declatable
[
#
cm
.
Declatable
+
1
]
=
ac
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -68,10 +73,20 @@ function cm.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
rmfilter
(
c
,
code
)
return
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCode
(
code
)
local
code1
,
code2
=
c
:
GetOriginalCodeRule
()
return
c
:
IsAbleToRemoveAsCost
()
and
(
cm
.
include
(
code1
,
cm
.
Declatable
)
or
cm
.
include
(
code2
,
cm
.
Declatable
))
end
function
cm
.
include
(
value
,
tab
)
if
not
value
then
return
false
end
if
tab
==
nil
then
return
false
end
for
k
,
v
in
ipairs
(
tab
)
do
if
v
==
value
then
return
true
end
end
return
false
end
function
cm
.
effcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
code
=
e
:
GetLabelObject
():
GetLabel
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
code
)
and
not
e
:
GetHandler
():
IsControler
(
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
code
)
...
...
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