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
d1acb798
Commit
d1acb798
authored
Jul 20, 2019
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tama card fix
parent
0fdc029e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
expansions/script/c13254032.lua
expansions/script/c13254032.lua
+2
-2
expansions/script/c13254033.lua
expansions/script/c13254033.lua
+2
-2
expansions/script/c13254037.lua
expansions/script/c13254037.lua
+1
-1
expansions/script/c13254038.lua
expansions/script/c13254038.lua
+4
-4
expansions/script/c13254045.lua
expansions/script/c13254045.lua
+3
-1
No files found.
expansions/script/c13254032.lua
View file @
d1acb798
...
...
@@ -92,7 +92,7 @@ function cm.setfilter1(c,e,tp)
return
not
c
:
IsType
(
TYPE_MONSTER
)
and
((
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
c
:
IsSSetable
())
end
function
cm
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
cm
.
setfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
cm
.
setfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
(
not
Duel
.
IsExistingMatchingCard
(
cm
.
setfilter1
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
))
and
Duel
.
IsExistingTarget
(
cm
.
setfilter
,
tp
,
0
,
LOCATION_GRAVE
,
2
,
nil
,
e
,
tp
)
...
...
@@ -104,7 +104,7 @@ function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
cm
.
setfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
ft
,
ft
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
ft
,
ft
,
nil
,
e
,
tp
)
local
sg
=
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
)
local
cat
=
e
:
GetCategory
()
if
sg
:
GetCount
()
>
0
then
...
...
expansions/script/c13254033.lua
View file @
d1acb798
...
...
@@ -32,12 +32,12 @@ function cm.rmfilter(c)
return
c
:
IsSetCard
(
0x356
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_REMOVED
,
0
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
rmfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_REMOVED
,
0
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
)
if
g
:
GetCount
()
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
g
:
Select
(
tp
,
1
,
2
,
nil
)
...
...
expansions/script/c13254037.lua
View file @
d1acb798
...
...
@@ -94,7 +94,7 @@ function cm.smop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
el
=
{{
13254031
,
1
},{
1325403
1
,
2
},{
13254033
,
1
},{
13254034
,
1
},{
13254035
,
1
},{
13254036
,
1
}}
local
el
=
{{
13254031
,
1
},{
1325403
2
,
1
},{
13254033
,
1
},{
13254034
,
1
},{
13254035
,
1
},{
13254036
,
1
}}
local
mg
=
tama
.
tamas_checkGroupElements
(
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
),
el
)
local
sg
=
Group
.
CreateGroup
()
if
chk
==
0
then
...
...
expansions/script/c13254038.lua
View file @
d1acb798
...
...
@@ -39,24 +39,24 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
g
:
Filter
(
cm
.
filter
,
nil
)
if
sg
:
GetCount
()
<=
0
then
return
end
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REVEAL
)
Duel
.
SendtoGrave
(
s
g
,
REASON_EFFECT
+
REASON_REVEAL
)
local
sg1
=
Duel
.
GetOperatedGroup
()
local
sg2
=
sg1
:
Clone
()
if
sg1
:
GetCount
()
>
0
then
if
sg1
:
GetSum
(
tama
.
tamas_getElement
s
,
13254033
)
>
0
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
then
if
sg1
:
GetSum
(
tama
.
tamas_getElement
Count
,
13254033
)
>
0
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
then
Duel
.
BreakEffect
()
Duel
.
ShuffleDeck
(
tp
)
Duel
.
DiscardDeck
(
tp
,
2
,
REASON_EFFECT
)
sg2
:
Merge
(
Duel
.
GetOperatedGroup
())
end
if
sg1
:
GetSum
(
tama
.
tamas_getElement
s
,
13254031
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
if
sg1
:
GetSum
(
tama
.
tamas_getElement
Count
,
13254031
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
sg2
:
Merge
(
Duel
.
GetOperatedGroup
())
end
if
sg1
:
GetSum
(
tama
.
tamas_getElement
s
,
13254036
)
>
0
and
sg2
:
IsExists
(
cm
.
filter2
,
1
,
nil
)
then
if
sg1
:
GetSum
(
tama
.
tamas_getElement
Count
,
13254036
)
>
0
and
sg2
:
IsExists
(
cm
.
filter2
,
1
,
nil
)
then
local
sg3
=
sg2
:
Filter
(
cm
.
filter2
,
nil
)
local
ct
=
sg3
:
GetCount
()
Duel
.
BreakEffect
()
...
...
expansions/script/c13254045.lua
View file @
d1acb798
...
...
@@ -31,7 +31,7 @@ function cm.initial_effect(c)
end
function
cm
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
t
d
filter
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
,
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
t
h
filter
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
,
c
)
end
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
()
...
...
@@ -66,7 +66,9 @@ function cm.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tdfilter1
,
tp
,
LOCATION_HAND
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tdfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
2
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetCount
())
end
function
cm
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
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