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
5de90d61
Commit
5de90d61
authored
Dec 23, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c24521aa
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
31 deletions
+49
-31
expansions/script/c13254046.lua
expansions/script/c13254046.lua
+0
-1
expansions/script/c13254065.lua
expansions/script/c13254065.lua
+1
-1
expansions/script/c13257224.lua
expansions/script/c13257224.lua
+5
-5
expansions/script/c13257359.lua
expansions/script/c13257359.lua
+1
-0
expansions/script/c188806.lua
expansions/script/c188806.lua
+9
-5
expansions/script/c188808.lua
expansions/script/c188808.lua
+30
-16
expansions/script/c33700949.lua
expansions/script/c33700949.lua
+3
-3
No files found.
expansions/script/c13254046.lua
View file @
5de90d61
...
...
@@ -94,7 +94,6 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
ShuffleDeck
(
p
)
Duel
.
BreakEffect
()
Duel
.
Draw
(
p
,
g
:
GetCount
(),
REASON_EFFECT
)
end
...
...
expansions/script/c13254065.lua
View file @
5de90d61
...
...
@@ -75,7 +75,7 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
end
end
if
sg1
:
GetSum
(
tama
.
tamas_getElementCount
,
TAMA_ELEMENT_CHAOS
)
>=
2
and
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_DECK
)
>
0
then
if
sg1
:
GetSum
(
tama
.
tamas_getElementCount
,
TAMA_ELEMENT_CHAOS
)
>=
2
and
Duel
.
GetFieldGroup
Count
(
tp
,
0
,
LOCATION_DECK
)
>
0
then
Duel
.
Hint
(
HINT_MESSAGE
,
0
,
aux
.
Stringid
(
m
,
6
))
Duel
.
ConfirmCards
(
tp
,
g
)
for
i
=
1
,
j
do
...
...
expansions/script/c13257224.lua
View file @
5de90d61
...
...
@@ -3,8 +3,8 @@ local m=13257224
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
require
(
"expansions/script/tama"
)
end
,
function
()
require
(
"script/tama"
)
end
)
function
cm
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x354
,
LOCATION_SZONE
)
c
:
SetCounterLimit
(
0x354
,
8
)
c
:
EnableCounterPermit
(
TAMA_COSMIC_BATTLESHIP_COUNTER_CHARGE
,
LOCATION_SZONE
)
c
:
SetCounterLimit
(
TAMA_COSMIC_BATTLESHIP_COUNTER_CHARGE
,
8
)
c
:
EnableReviveLimit
()
--equip limit
local
e11
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -78,13 +78,13 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
if
ct
>
0
then
--ct=math.floor(math.sqrt(ct))
ct
=
math.ceil
(
ct
/
2
)
e
:
GetHandler
():
AddCounter
(
COSMIC_BATTLESHIP
_CHARGE
,
ct
)
e
:
GetHandler
():
AddCounter
(
TAMA_COSMIC_BATTLESHIP_COUNTER
_CHARGE
,
ct
)
end
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
COSMIC_BATTLESHIP
_CHARGE
,
8
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
COSMIC_BATTLESHIP
_CHARGE
,
8
,
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
TAMA_COSMIC_BATTLESHIP_COUNTER
_CHARGE
,
8
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveCounter
(
tp
,
TAMA_COSMIC_BATTLESHIP_COUNTER
_CHARGE
,
8
,
REASON_COST
)
end
function
cm
.
codisable
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
expansions/script/c13257359.lua
View file @
5de90d61
...
...
@@ -78,6 +78,7 @@ function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x351
,
1
)
end
end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
eqfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
c
)
...
...
expansions/script/c188806.lua
View file @
5de90d61
...
...
@@ -4,21 +4,25 @@ function c188806.initial_effect(c)
aux
.
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
nil
),
nil
,
nil
,
aux
.
NonTuner
(
nil
),
1
,
1
,
c188806
.
syncheck
)
--SpecialSummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
188806
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
188806
)
e1
:
SetCondition
(
c188806
.
spcon
)
e1
:
SetTarget
(
c188806
.
sptg
)
e1
:
SetOperation
(
c188806
.
spop
)
c
:
RegisterEffect
(
e1
)
--Negate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
188806
,
2
))
e2
:
SetDescription
(
aux
.
Stringid
(
188806
,
1
))
e2
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
088806
)
e2
:
SetCondition
(
c188806
.
negcon
)
e2
:
SetCost
(
c188806
.
negcost
)
e2
:
SetTarget
(
c188806
.
negtg
)
...
...
@@ -29,6 +33,9 @@ function c188806.syncheck(g)
local
sg
=
g
:
Clone
()
return
sg
:
GetClassCount
(
Card
.
GetOriginalAttribute
)
==
sg
:
GetCount
()
and
sg
:
GetClassCount
(
Card
.
GetOriginalRace
)
==
sg
:
GetCount
()
end
function
c188806
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
c188806
.
spfil
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x3f38
)
and
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
...
...
@@ -42,7 +49,7 @@ function c188806.spop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
<=
0
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c188806
.
ckfil
(
c
)
return
c
:
IsOnField
()
and
c
:
IsSetCard
(
0x3f38
)
...
...
@@ -78,6 +85,3 @@ end
function
c188806
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
end
expansions/script/c188808.lua
View file @
5de90d61
...
...
@@ -3,19 +3,15 @@ function c188808.initial_effect(c)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c188808
.
lcheck
)
c
:
EnableReviveLimit
()
--to grave
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c188808
.
tgtg
)
e1
:
SetOperation
(
c188808
.
tgop
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c188808
.
regcon
)
e1
:
SetOperation
(
c188808
.
regop
)
c
:
RegisterEffect
(
e1
)
--SpecialSummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
...
...
@@ -28,13 +24,33 @@ end
function
c188808
.
lcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x3f38
)
and
g
:
GetClassCount
(
Card
.
GetRace
)
==
g
:
GetCount
()
end
function
c188808
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c188808
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
or
(
re
and
re
:
GetHandler
():
IsCode
(
188807
))
end
function
c188808
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c188808
.
tgcon
)
e1
:
SetTarget
(
c188808
.
tgtg
)
e1
:
SetOperation
(
c188808
.
tgop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
end
function
c188808
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
(
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
or
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
+
188807
))
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c188808
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
function
c188808
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetCount
()
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
@@ -59,5 +75,3 @@ function c188808.spop(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
expansions/script/c33700949.lua
View file @
5de90d61
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetCountLimit
(
1
)
e1
:
Set
Target
(
cm
.
discon
)
e1
:
Set
Condition
(
cm
.
discon
)
e1
:
SetTarget
(
cm
.
distg
)
e1
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -28,7 +28,7 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
TIMING_BATTLE_PHASE
,
TIMINGS_CHECK_MONSTER
+
TIMING_BATTLE_PHASE
)
e2
:
SetCountLimit
(
1
)
e2
:
Set
Target
(
cm
.
pscon
)
e2
:
Set
Condition
(
cm
.
pscon
)
e2
:
SetTarget
(
cm
.
pstg
)
e2
:
SetOperation
(
cm
.
psop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -37,7 +37,7 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
Set
Target
(
cm
.
imcon
)
e3
:
Set
Condition
(
cm
.
imcon
)
e3
:
SetValue
(
cm
.
efilter
)
c
:
RegisterEffect
(
e3
)
...
...
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