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
028c7474
Commit
028c7474
authored
Apr 19, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
df736134
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
185 additions
and
180 deletions
+185
-180
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/script/c117837139.lua
expansions/script/c117837139.lua
+165
-165
expansions/script/c60002392.lua
expansions/script/c60002392.lua
+10
-8
expansions/script/c60010107.lua
expansions/script/c60010107.lua
+1
-1
expansions/script/c7458127.lua
expansions/script/c7458127.lua
+8
-6
expansions/strings.conf
expansions/strings.conf
+1
-0
No files found.
expansions/no81.cdb
View file @
028c7474
No preview for this file type
expansions/script/c117837139.lua
View file @
028c7474
--ユベル-Das Erbärmlich Vorhandensein
--ユベル-Das Erbärmlich Vorhandensein
function
c117837139
.
initial_effect
(
c
)
function
c117837139
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
117837139
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
117837139
,
LOCATION_MZONE
)
--spsummon condition
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetTargetRange
(
POS_FACEUP
,
1
)
e1
:
SetTargetRange
(
POS_FACEUP
,
1
)
e1
:
SetCondition
(
c117837139
.
sumcon
)
e1
:
SetCondition
(
c117837139
.
sumcon
)
e1
:
SetOperation
(
c117837139
.
sumop
)
e1
:
SetOperation
(
c117837139
.
sumop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot release
--cannot release
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--cannot summon material
--cannot summon material
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
e4
:
SetValue
(
1
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
e6
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
local
e7
=
e4
:
Clone
()
local
e7
=
e4
:
Clone
()
e7
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e7
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
--atklimit
--atklimit
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e8
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
--cannot be target
--cannot be target
local
e9
=
Effect
.
CreateEffect
(
c
)
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e9
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e9
:
SetRange
(
LOCATION_MZONE
)
e9
:
SetRange
(
LOCATION_MZONE
)
e9
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e9
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e9
:
SetTarget
(
c117837139
.
target
)
e9
:
SetTarget
(
c117837139
.
target
)
e9
:
SetValue
(
1
)
e9
:
SetValue
(
1
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
local
e10
=
e9
:
Clone
()
local
e10
=
e9
:
Clone
()
e10
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e10
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e10
:
SetValue
(
1
)
e10
:
SetValue
(
1
)
c
:
RegisterEffect
(
e10
)
c
:
RegisterEffect
(
e10
)
--special summon
--special summon
local
e11
=
Effect
.
CreateEffect
(
c
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e11
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e11
:
SetProperty
(
EFFECT_FLAG_BOTH_SIDE
)
e11
:
SetProperty
(
EFFECT_FLAG_BOTH_SIDE
)
e11
:
SetType
(
EFFECT_TYPE_IGNITION
)
e11
:
SetType
(
EFFECT_TYPE_IGNITION
)
e11
:
SetRange
(
LOCATION_MZONE
)
e11
:
SetRange
(
LOCATION_MZONE
)
e11
:
SetCountLimit
(
1
)
e11
:
SetCountLimit
(
1
)
e11
:
SetTarget
(
c117837139
.
sptg
)
e11
:
SetTarget
(
c117837139
.
sptg
)
e11
:
SetOperation
(
c117837139
.
spop
)
e11
:
SetOperation
(
c117837139
.
spop
)
c
:
RegisterEffect
(
e11
)
c
:
RegisterEffect
(
e11
)
--cannot select battle target
--cannot select battle target
local
e12
=
Effect
.
CreateEffect
(
c
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_FIELD
)
e12
:
SetType
(
EFFECT_TYPE_FIELD
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e12
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e12
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e12
:
SetCode
(
EFFECT_MUST_ATTACK
)
e12
:
SetCondition
(
c117837139
.
atkcon
)
e12
:
SetCondition
(
c117837139
.
atkcon
)
e12
:
SetValue
(
c117837139
.
atlimit
)
c
:
RegisterEffect
(
e12
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
(
)
local
e13
=
e12
:
Clone
(
)
e12
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
e13
:
SetCode
(
EFFECT_MUST_ATTACK
)
e12
:
SetValue
(
c117837139
.
atlimit
)
c
:
RegisterEffect
(
e13
)
c
:
RegisterEffect
(
e13
)
--switch control
--switch control
local
e14
=
Effect
.
CreateEffect
(
c
)
local
e14
=
Effect
.
CreateEffect
(
c
)
e14
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e14
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e14
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e14
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e14
:
SetCode
(
EVENT_PHASE_START
+
PHASE_BATTLE_START
)
e14
:
SetCode
(
EVENT_PHASE_START
+
PHASE_BATTLE_START
)
e14
:
SetRange
(
LOCATION_MZONE
)
e14
:
SetRange
(
LOCATION_MZONE
)
e14
:
SetCountLimit
(
1
)
e14
:
SetCountLimit
(
1
)
e14
:
SetOperation
(
c117837139
.
maop
)
e14
:
SetOperation
(
c117837139
.
maop
)
c
:
RegisterEffect
(
e14
)
c
:
RegisterEffect
(
e14
)
end
end
--special summon rule
--special summon rule
function
c117837139
.
sumfilter
(
c
,
e
,
tp
)
function
c117837139
.
sumfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1a5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
,
tp
)
return
c
:
IsSetCard
(
0x1a5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
,
tp
)
end
end
function
c117837139
.
sumcon
(
e
,
c
)
function
c117837139
.
sumcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCountFromEx
(
1
-
tp
,
tp
,
nil
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c117837139
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
true
,
false
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCountFromEx
(
1
-
tp
,
tp
,
nil
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c117837139
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
true
,
false
,
POS_FACEUP
,
1
-
tp
)
end
end
function
c117837139
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c117837139
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
end
end
end
function
c117837139
.
target
(
e
,
c
)
function
c117837139
.
target
(
e
,
c
)
return
c
:
IsSetCard
(
0x1a5
)
return
c
:
IsSetCard
(
0x1a5
)
end
end
function
c117837139
.
cfilter
(
c
)
function
c117837139
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
end
end
function
c117837139
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c117837139
.
atkcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c117837139
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c117837139
.
cfilter
,
e
:
GetHandlerPlayer
()
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c117837139
.
atlimit
(
e
,
c
)
function
c117837139
.
atlimit
(
e
,
c
)
return
not
(
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
end
end
function
c117837139
.
spfilter
(
c
,
e
,
tp
)
function
c117837139
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1a5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsSetCard
(
0x1a5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c117837139
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c117837139
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c117837139
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c117837139
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c117837139
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c117837139
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
end
end
end
function
c117837139
.
ccfilter
(
c
)
function
c117837139
.
ccfilter
(
c
)
return
c
:
IsAbleToChangeControler
()
and
c
:
GetSequence
()
<
5
return
c
:
IsAbleToChangeControler
()
and
c
:
GetSequence
()
<
5
end
end
function
c117837139
.
gfilter
(
c
)
function
c117837139
.
gfilter
(
c
)
return
c
:
GetFlagEffect
(
117837139
)
==
0
and
c
:
GetSequence
()
<
5
return
c
:
GetFlagEffect
(
117837139
)
==
0
and
c
:
GetSequence
()
<
5
end
end
function
c117837139
.
cxfilter
(
c
)
function
c117837139
.
cxfilter
(
c
)
return
not
c
:
IsAbleToChangeControler
()
return
not
c
:
IsAbleToChangeControler
()
end
end
function
c117837139
.
maop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c117837139
.
maop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
return
end
if
Duel
.
GetTurnPlayer
()
==
tp
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDefensePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDefensePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
local
g1
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g1
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
og1
=
g1
:
GetCount
()
local
og1
=
g1
:
GetCount
()
local
og2
=
g2
:
GetCount
()
local
og2
=
g2
:
GetCount
()
if
(
og1
==
0
or
og2
==
0
)
then
return
end
if
(
og1
==
0
or
og2
==
0
)
then
return
end
if
not
(
g1
:
FilterCount
(
c117837139
.
cxfilter
,
nil
)
==
0
or
g2
:
FilterCount
(
c117837139
.
cxfilter
,
nil
)
==
0
)
then
return
end
if
not
(
g1
:
FilterCount
(
c117837139
.
cxfilter
,
nil
)
==
0
or
g2
:
FilterCount
(
c117837139
.
cxfilter
,
nil
)
==
0
)
then
return
end
if
og1
>
og2
then
if
og1
>
og2
then
local
tc1
=
g1
:
GetFirst
()
local
tc1
=
g1
:
GetFirst
()
for
i
=
1
,
og1
-
og2
do
for
i
=
1
,
og1
-
og2
do
Duel
.
GetControl
(
tc1
,
1
-
tp
,
PHASE_BATTLE
,
1
)
Duel
.
GetControl
(
tc1
,
1
-
tp
,
PHASE_BATTLE
,
1
)
tc1
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc1
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc1
=
g1
:
GetNext
()
tc1
=
g1
:
GetNext
()
end
end
elseif
og1
<
og2
then
elseif
og1
<
og2
then
local
tc2
=
g2
:
GetFirst
()
local
tc2
=
g2
:
GetFirst
()
for
i
=
1
,
og2
-
og1
do
for
i
=
1
,
og2
-
og1
do
Duel
.
GetControl
(
tc2
,
tp
,
PHASE_BATTLE
,
1
)
Duel
.
GetControl
(
tc2
,
tp
,
PHASE_BATTLE
,
1
)
tc2
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc2
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc2
=
g2
:
GetNext
()
tc2
=
g2
:
GetNext
()
end
end
end
end
local
cg1
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
cg1
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
cg2
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
cg2
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SwapControl
(
cg1
,
cg2
,
PHASE_BATTLE
,
1
)
Duel
.
SwapControl
(
cg1
,
cg2
,
PHASE_BATTLE
,
1
)
--reflect damage
--reflect damage
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e1
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetValue
(
c117837139
.
refcon
)
e1
:
SetValue
(
c117837139
.
refcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--cannot direct attack
--cannot direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c117837139
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
c117837139
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
end
expansions/script/c60002392.lua
View file @
028c7474
--隐秘的
拉比林斯
王
--隐秘的
白之
王
local
cm
,
m
,
o
=
GetID
()
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetTarget
(
cm
.
indtg
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetValue
(
1
)
e3
:
SetRange
(
LOCATION_MZONE
)
c
:
RegisterEffect
(
e2
)
e3
:
SetTarget
(
cm
.
indtg
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
expansions/script/c60010107.lua
View file @
028c7474
...
@@ -228,8 +228,8 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -228,8 +228,8 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
local
rg
=
Duel
.
GetMatchingGroup
(
cm
.
rmfil
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
xlv
):
Select
(
tp
,
1
,
1
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
cm
.
rmfil
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
xlv
):
Select
(
tp
,
1
,
1
,
nil
)
if
rg
and
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
then
if
rg
and
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
then
local
rmvg
=
Duel
.
GetOperatedGroup
()
local
rmvg
=
Duel
.
GetOperatedGroup
()
rmvg
:
KeepAlive
()
e
:
SetLabelObject
(
rmvg
)
e
:
SetLabelObject
(
rmvg
)
rmvg
:
KeepAlive
()
local
code
=
rmvg
:
GetFirst
():
GetCode
()
local
code
=
rmvg
:
GetFirst
():
GetCode
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c7458127.lua
View file @
028c7474
...
@@ -36,10 +36,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,10 +36,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e12
=
e1
:
Clone
()
local
e12
=
e1
:
Clone
()
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e12
,
tp
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e1
:
Clone
()
local
e13
=
e1
:
Clone
()
e13
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
e13
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e13
,
tp
)
c
:
RegisterEffect
(
e13
)
--sp_summon effect
--sp_summon effect
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
@@ -51,10 +51,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,10 +51,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e22
=
e2
:
Clone
()
local
e22
=
e2
:
Clone
()
e22
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e22
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e22
,
tp
)
c
:
RegisterEffect
(
e22
)
local
e23
=
e2
:
Clone
()
local
e23
=
e2
:
Clone
()
e23
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
e23
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e23
,
tp
)
c
:
RegisterEffect
(
e23
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
...
@@ -70,7 +70,8 @@ function s.filter(c,sp,code)
...
@@ -70,7 +70,8 @@ function s.filter(c,sp,code)
end
end
function
s
.
tgcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tgcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
filter
,
1
,
nil
,
1
-
tp
,
e
:
GetLabel
())
return
eg
:
IsExists
(
s
.
filter
,
1
,
nil
,
1
-
tp
,
e
:
GetLabel
())
and
(
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
and
not
Duel
.
IsChainSolving
()
--and (not re:IsHasType(EFFECT_TYPE_ACTIONS) or re:IsHasType(EFFECT_TYPE_CONTINUOUS))
end
end
function
s
.
tgop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tgop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
...
@@ -83,7 +84,8 @@ function s.tgop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,7 +84,8 @@ function s.tgop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
filter
,
1
,
nil
,
1
-
tp
,
e
:
GetLabel
())
return
eg
:
IsExists
(
s
.
filter
,
1
,
nil
,
1
-
tp
,
e
:
GetLabel
())
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
and
Duel
.
IsChainSolving
()
--and re:IsHasType(EFFECT_TYPE_ACTIONS) and not re:IsHasType(EFFECT_TYPE_CONTINUOUS)
end
end
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_CHAIN
,
0
,
1
)
...
...
expansions/strings.conf
View file @
028c7474
...
@@ -1119,6 +1119,7 @@
...
@@ -1119,6 +1119,7 @@
#会变的不幸rua 519
#会变的不幸rua 519
!
setname
0
x510
《遥远·传说》
!
setname
0
x510
《遥远·传说》
!
setname
0
x511
《不详·征兆》
#sch 258 0x210-0x21f
#sch 258 0x210-0x21f
!
setname
0
x211
舰娘
!
setname
0
x211
舰娘
...
...
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