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
f9163ff1
Commit
f9163ff1
authored
Dec 28, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ca73e7f5
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
34 additions
and
30 deletions
+34
-30
expansions/script/c11451551.lua
expansions/script/c11451551.lua
+2
-2
expansions/script/c11451552.lua
expansions/script/c11451552.lua
+2
-2
expansions/script/c11451553.lua
expansions/script/c11451553.lua
+2
-2
expansions/script/c11451554.lua
expansions/script/c11451554.lua
+2
-2
expansions/script/c11451555.lua
expansions/script/c11451555.lua
+2
-2
expansions/script/c11451556.lua
expansions/script/c11451556.lua
+2
-2
expansions/script/c11451557.lua
expansions/script/c11451557.lua
+2
-2
expansions/script/c11451558.lua
expansions/script/c11451558.lua
+2
-2
expansions/script/c11451565.lua
expansions/script/c11451565.lua
+5
-3
expansions/script/c11451626.lua
expansions/script/c11451626.lua
+6
-4
expansions/script/c13254046.lua
expansions/script/c13254046.lua
+1
-1
expansions/script/c13254063.lua
expansions/script/c13254063.lua
+2
-3
expansions/script/c13254066.lua
expansions/script/c13254066.lua
+1
-1
expansions/script/c33711403.lua
expansions/script/c33711403.lua
+1
-0
expansions/script/c83000087.lua
expansions/script/c83000087.lua
+2
-2
No files found.
expansions/script/c11451551.lua
View file @
f9163ff1
...
...
@@ -51,9 +51,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451552.lua
View file @
f9163ff1
...
...
@@ -50,9 +50,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451553.lua
View file @
f9163ff1
...
...
@@ -51,9 +51,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451554.lua
View file @
f9163ff1
...
...
@@ -48,9 +48,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451555.lua
View file @
f9163ff1
...
...
@@ -51,9 +51,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451556.lua
View file @
f9163ff1
...
...
@@ -152,9 +152,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451557.lua
View file @
f9163ff1
...
...
@@ -153,9 +153,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451558.lua
View file @
f9163ff1
...
...
@@ -152,9 +152,9 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
3
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
)
>
0
then
if
not
c
:
GetEquipGroup
():
IsExists
(
cm
.
eqfilter
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
)
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_DECK
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
local
tc
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetMaxGroup
(
Card
.
GetSequence
):
GetFirst
()
Duel
.
DisableShuffleCheck
()
if
cm
.
equipfd
(
c
,
tp
,
tc
)
then
Duel
.
Readjust
()
end
end
...
...
expansions/script/c11451565.lua
View file @
f9163ff1
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_
DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCondition
(
cm
.
eqcon
)
e2
:
SetTarget
(
cm
.
eqtg
)
...
...
@@ -45,7 +45,6 @@ function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
false
end
if
chk
==
0
then
return
tc
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsFaceup
()
and
tc
:
IsCanBeEffectTarget
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
Duel
.
SetTargetCard
(
tc
)
Duel
.
HintSelection
(
Group
.
FromCards
(
tc
))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
@@ -57,7 +56,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
>
0
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
ec
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
):
GetFirst
()
local
ec
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
notpublic
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
ec
and
Duel
.
Equip
(
tp
,
ec
,
tc
,
false
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -69,6 +68,9 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
cm
.
notpublic
(
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
acfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
GetEquipTarget
()
end
...
...
expansions/script/c11451626.lua
View file @
f9163ff1
...
...
@@ -72,9 +72,9 @@ end
function
cm
.
imval
(
e
,
te
)
if
te
:
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
then
return
false
end
if
not
te
:
IsActivated
()
then
return
true
end
local
lab
=
e
:
GetHandler
():
GetFlagEffectLabel
(
m
)
local
ev
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_CHAIN_COUNT
)
local
re
=
Duel
.
GetChainInfo
(
ev
+
1
,
CHAININFO_TRIGGERING_EFFECT
)
return
not
(
re
and
re
:
GetHandler
()
and
e
:
GetHandler
()
==
re
:
GetHandler
())
return
ev
and
ev
>
0
and
not
(
lab
and
lab
==
ev
+
1
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
...
...
@@ -91,7 +91,8 @@ function cm.spfilter2(c,e,tp,mc,tc)
return
c
:
IsSetCard
(
0x14f
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetMZoneCount
(
tp
,
tc
)
>
0
and
math.abs
(
c
:
GetOriginalLevel
()
-
mc
:
GetOriginalLevel
())
==
1
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
,
false
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
,
false
)
and
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
,
Duel
.
GetCurrentChain
())
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
,
tp
,
false
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_EXTRA
+
LOCATION_GRAVE
)
...
...
@@ -113,7 +114,8 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
,
Duel
.
GetCurrentChain
())
if
Duel
.
IsExistingTarget
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
...
...
expansions/script/c13254046.lua
View file @
f9163ff1
...
...
@@ -55,7 +55,7 @@ function cm.sumfilter(c)
return
c
:
IsSetCard
(
0x3356
)
and
c
:
IsSummonable
(
true
,
nil
)
end
function
cm
.
smtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
smop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c13254063.lua
View file @
f9163ff1
...
...
@@ -23,11 +23,10 @@ end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
el
=
{{
TAMA_ELEMENT_ORDER
,
1
}}
local
mg
=
tama
.
tamas_checkGroupElements
(
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
),
el
)
local
sg
=
Group
.
CreateGroup
()
if
chk
==
0
then
return
mg
:
GetCount
()
>
0
and
mg
:
IsExists
(
tama
.
tamas_selectElementsForAbove
,
1
,
nil
,
mg
,
s
g
,
el
)
return
mg
:
GetCount
()
>
0
and
tama
.
tamas_isCanSelectElementsForAbove
(
m
g
,
el
)
end
local
sg
=
tama
.
tamas_select
AllSelectForAbove
(
mg
,
el
,
tp
)
local
sg
=
tama
.
tamas_select
ElementsMaterial
(
mg
,
el
,
tp
)
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c13254066.lua
View file @
f9163ff1
...
...
@@ -38,7 +38,7 @@ function cm.smtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
smop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
Count
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
--[[
if g:GetCount()<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
...
...
expansions/script/c33711403.lua
View file @
f9163ff1
...
...
@@ -7,6 +7,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_TODECK
+
CATEGORY_TOEXTRA
+
CATEGORY_RECOVER
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
...
...
expansions/script/c83000087.lua
View file @
f9163ff1
...
...
@@ -20,8 +20,8 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
Is
AbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
Is
Discardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
Card
.
IsFaceup
,
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