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
Huangnan
no81cards
Commits
0c06f966
Commit
0c06f966
authored
Jul 21, 2019
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tama bugfix
parent
d1acb798
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
expansions/script/c13254039.lua
expansions/script/c13254039.lua
+4
-2
expansions/script/c13254040.lua
expansions/script/c13254040.lua
+2
-1
expansions/script/c13254041.lua
expansions/script/c13254041.lua
+2
-2
expansions/script/c13254045.lua
expansions/script/c13254045.lua
+1
-1
No files found.
expansions/script/c13254039.lua
View file @
0c06f966
...
@@ -7,6 +7,7 @@ function cm.initial_effect(c)
...
@@ -7,6 +7,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetCost
(
cm
.
cost
)
...
@@ -17,6 +18,7 @@ function cm.initial_effect(c)
...
@@ -17,6 +18,7 @@ function cm.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DRAW
)
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_DRAW
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCost
(
cm
.
cost1
)
e2
:
SetCost
(
cm
.
cost1
)
...
@@ -80,14 +82,14 @@ function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -80,14 +82,14 @@ function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
ct
=
e
:
GetLabel
()
local
ct
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
eg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
ct
,
nil
)
local
eg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
HINTMSG
_REMOVE
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY
_REMOVE
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
eg
:
GetCount
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
eg
:
GetCount
())
end
end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
rg
:
GetCount
()
>
0
then
if
rg
:
GetCount
()
>
0
then
local
ct
=
Duel
.
Remove
(
rg
,
REASON_EFFECT
)
local
ct
=
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
ct
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
ct
,
REASON_EFFECT
)
end
end
end
end
...
...
expansions/script/c13254040.lua
View file @
0c06f966
...
@@ -30,6 +30,7 @@ function cm.initial_effect(c)
...
@@ -30,6 +30,7 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCost
(
cm
.
cost2
)
e3
:
SetCost
(
cm
.
cost2
)
e3
:
SetTarget
(
cm
.
target2
)
e3
:
SetOperation
(
cm
.
operation2
)
e3
:
SetOperation
(
cm
.
operation2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -58,7 +59,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,7 +59,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
sg
,
tp
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
sg
,
tp
,
2
,
REASON_EFFECT
)
end
end
function
cm
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
el
=
{{
13254032
,
2
},{
13254034
,
1
}}
local
el
=
{{
13254032
,
1
},{
13254034
,
1
}}
local
mg
=
tama
.
tamas_checkGroupElements
(
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
),
el
)
local
mg
=
tama
.
tamas_checkGroupElements
(
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
),
el
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
if
chk
==
0
then
if
chk
==
0
then
...
...
expansions/script/c13254041.lua
View file @
0c06f966
...
@@ -109,14 +109,14 @@ end
...
@@ -109,14 +109,14 @@ end
function
cm
.
setfilter3
(
c
)
function
cm
.
setfilter3
(
c
)
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
cm
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
5
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
cm
,
3
))
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
5
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
cm
,
3
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
expansions/script/c13254045.lua
View file @
0c06f966
...
@@ -34,7 +34,7 @@ function cm.tdfilter(c)
...
@@ -34,7 +34,7 @@ function cm.tdfilter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
,
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
,
c
)
end
end
function
cm
.
thfilter
(
c
,
tc
)
function
cm
.
thfilter
(
c
,
tc
)
return
c
:
IsSetCard
(
0x3356
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
tama
.
tamas_checkElementsEmpty
(
tama
.
tamas_getElements
(
c
)
and
tama
.
tamas_checkCardElementsGreater
(
tc
,
c
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3356
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
tama
.
tamas_checkElementsEmpty
(
tama
.
tamas_getElements
(
c
)
)
and
tama
.
tamas_checkCardElementsGreater
(
tc
,
c
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
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