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
function
c117837139
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
117837139
,
LOCATION_MZONE
)
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e0
)
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetTargetRange
(
POS_FACEUP
,
1
)
e1
:
SetCondition
(
c117837139
.
sumcon
)
e1
:
SetOperation
(
c117837139
.
sumop
)
c
:
RegisterEffect
(
e1
)
--cannot release
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
c
:
RegisterEffect
(
e3
)
--cannot summon material
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
c
:
RegisterEffect
(
e6
)
local
e7
=
e4
:
Clone
()
e7
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
c
:
RegisterEffect
(
e7
)
--atklimit
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e8
)
--cannot be target
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e9
:
SetRange
(
LOCATION_MZONE
)
e9
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e9
:
SetTarget
(
c117837139
.
target
)
e9
:
SetValue
(
1
)
c
:
RegisterEffect
(
e9
)
local
e10
=
e9
:
Clone
()
e10
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e10
:
SetValue
(
1
)
c
:
RegisterEffect
(
e10
)
--special summon
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e11
:
SetProperty
(
EFFECT_FLAG_BOTH_SIDE
)
e11
:
SetType
(
EFFECT_TYPE_IGNITION
)
e11
:
SetRange
(
LOCATION_MZONE
)
e11
:
SetCountLimit
(
1
)
e11
:
SetTarget
(
c117837139
.
sptg
)
e11
:
SetOperation
(
c117837139
.
spop
)
c
:
RegisterEffect
(
e11
)
--cannot select battle target
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_FIELD
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e12
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e12
:
SetCondition
(
c117837139
.
atkcon
)
e12
:
SetValue
(
c117837139
.
atlimit
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
(
)
e13
:
SetCode
(
EFFECT_MUST_ATTACK
)
c
:
RegisterEffect
(
e13
)
--switch control
local
e14
=
Effect
.
CreateEffect
(
c
)
e14
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e14
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e14
:
SetCode
(
EVENT_PHASE_START
+
PHASE_BATTLE_START
)
e14
:
SetRange
(
LOCATION_MZONE
)
e14
:
SetCountLimit
(
1
)
e14
:
SetOperation
(
c117837139
.
maop
)
c
:
RegisterEffect
(
e14
)
c
:
SetUniqueOnField
(
1
,
1
,
117837139
,
LOCATION_MZONE
)
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e0
)
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetTargetRange
(
POS_FACEUP
,
1
)
e1
:
SetCondition
(
c117837139
.
sumcon
)
e1
:
SetOperation
(
c117837139
.
sumop
)
c
:
RegisterEffect
(
e1
)
--cannot release
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
c
:
RegisterEffect
(
e3
)
--cannot summon material
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
c
:
RegisterEffect
(
e6
)
local
e7
=
e4
:
Clone
()
e7
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
c
:
RegisterEffect
(
e7
)
--atklimit
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e8
)
--cannot be target
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e9
:
SetRange
(
LOCATION_MZONE
)
e9
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e9
:
SetTarget
(
c117837139
.
target
)
e9
:
SetValue
(
1
)
c
:
RegisterEffect
(
e9
)
local
e10
=
e9
:
Clone
()
e10
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e10
:
SetValue
(
1
)
c
:
RegisterEffect
(
e10
)
--special summon
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e11
:
SetProperty
(
EFFECT_FLAG_BOTH_SIDE
)
e11
:
SetType
(
EFFECT_TYPE_IGNITION
)
e11
:
SetRange
(
LOCATION_MZONE
)
e11
:
SetCountLimit
(
1
)
e11
:
SetTarget
(
c117837139
.
sptg
)
e11
:
SetOperation
(
c117837139
.
spop
)
c
:
RegisterEffect
(
e11
)
--cannot select battle target
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetType
(
EFFECT_TYPE_FIELD
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e12
:
SetCode
(
EFFECT_MUST_ATTACK
)
e12
:
SetCondition
(
c117837139
.
atkcon
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e12
:
Clone
(
)
e12
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
e12
:
SetValue
(
c117837139
.
atlimit
)
c
:
RegisterEffect
(
e13
)
--switch control
local
e14
=
Effect
.
CreateEffect
(
c
)
e14
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e14
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e14
:
SetCode
(
EVENT_PHASE_START
+
PHASE_BATTLE_START
)
e14
:
SetRange
(
LOCATION_MZONE
)
e14
:
SetCountLimit
(
1
)
e14
:
SetOperation
(
c117837139
.
maop
)
c
:
RegisterEffect
(
e14
)
end
--special summon rule
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
function
c117837139
.
sumcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
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
)
if
c
==
nil
then
return
true
end
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
,
POS_FACEUP
,
1
-
tp
)
end
function
c117837139
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
end
function
c117837139
.
target
(
e
,
c
)
return
c
:
IsSetCard
(
0x1a5
)
return
c
:
IsSetCard
(
0x1a5
)
end
function
c117837139
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
end
function
c117837139
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c117837139
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
function
c117837139
.
atkcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c117837139
.
cfilter
,
e
:
GetHandlerPlayer
()
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c117837139
.
atlimit
(
e
,
c
)
return
not
(
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1a5
)
end
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
function
c117837139
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
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
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c117837139
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c117837139
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
end
function
c117837139
.
ccfilter
(
c
)
return
c
:
IsAbleToChangeControler
()
and
c
:
GetSequence
()
<
5
return
c
:
IsAbleToChangeControler
()
and
c
:
GetSequence
()
<
5
end
function
c117837139
.
gfilter
(
c
)
return
c
:
GetFlagEffect
(
117837139
)
==
0
and
c
:
GetSequence
()
<
5
return
c
:
GetFlagEffect
(
117837139
)
==
0
and
c
:
GetSequence
()
<
5
end
function
c117837139
.
cxfilter
(
c
)
return
not
c
:
IsAbleToChangeControler
()
return
not
c
:
IsAbleToChangeControler
()
end
function
c117837139
.
maop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
return
end
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDefensePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
local
g1
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
og1
=
g1
:
GetCount
()
local
og2
=
g2
:
GetCount
()
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
og1
>
og2
then
local
tc1
=
g1
:
GetFirst
()
for
i
=
1
,
og1
-
og2
do
Duel
.
GetControl
(
tc1
,
1
-
tp
,
PHASE_BATTLE
,
1
)
tc1
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc1
=
g1
:
GetNext
()
end
elseif
og1
<
og2
then
local
tc2
=
g2
:
GetFirst
()
for
i
=
1
,
og2
-
og1
do
Duel
.
GetControl
(
tc2
,
tp
,
PHASE_BATTLE
,
1
)
tc2
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc2
=
g2
:
GetNext
()
end
end
local
cg1
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
cg2
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SwapControl
(
cg1
,
cg2
,
PHASE_BATTLE
,
1
)
--reflect damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetValue
(
c117837139
.
refcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--cannot direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
return
end
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDefensePos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
local
g1
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
c117837139
.
ccfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
og1
=
g1
:
GetCount
()
local
og2
=
g2
:
GetCount
()
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
og1
>
og2
then
local
tc1
=
g1
:
GetFirst
()
for
i
=
1
,
og1
-
og2
do
Duel
.
GetControl
(
tc1
,
1
-
tp
,
PHASE_BATTLE
,
1
)
tc1
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc1
=
g1
:
GetNext
()
end
elseif
og1
<
og2
then
local
tc2
=
g2
:
GetFirst
()
for
i
=
1
,
og2
-
og1
do
Duel
.
GetControl
(
tc2
,
tp
,
PHASE_BATTLE
,
1
)
tc2
:
RegisterFlagEffect
(
117837139
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
tc2
=
g2
:
GetNext
()
end
end
local
cg1
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
cg2
=
Duel
.
GetMatchingGroup
(
c117837139
.
gfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SwapControl
(
cg1
,
cg2
,
PHASE_BATTLE
,
1
)
--reflect damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetValue
(
c117837139
.
refcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--cannot direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c117837139
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
expansions/script/c60002392.lua
View file @
028c7474
--隐秘的
拉比林斯
王
--隐秘的
白之
王
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
cm
.
indtg
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
cm
.
indtg
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e1
=
Effect
.
CreateEffect
(
c
)
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)
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
local
rmvg
=
Duel
.
GetOperatedGroup
()
rmvg
:
KeepAlive
()
e
:
SetLabelObject
(
rmvg
)
rmvg
:
KeepAlive
()
local
code
=
rmvg
:
GetFirst
():
GetCode
()
local
e1
=
Effect
.
CreateEffect
(
c
)
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)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e12
=
e1
:
Clone
()
e12
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e12
,
tp
)
c
:
RegisterEffect
(
e12
)
local
e13
=
e1
:
Clone
()
e13
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e13
,
tp
)
c
:
RegisterEffect
(
e13
)
--sp_summon effect
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
...
@@ -51,10 +51,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e22
=
e2
:
Clone
()
e22
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e22
,
tp
)
c
:
RegisterEffect
(
e22
)
local
e23
=
e2
:
Clone
()
e23
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e23
,
tp
)
c
:
RegisterEffect
(
e23
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
...
...
@@ -70,7 +70,8 @@ function s.filter(c,sp,code)
end
function
s
.
tgcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
function
s
.
tgop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
...
...
@@ -83,7 +84,8 @@ function s.tgop1(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_CHAIN
,
0
,
1
)
...
...
expansions/strings.conf
View file @
028c7474
...
...
@@ -1119,6 +1119,7 @@
#会变的不幸rua 519
!
setname
0
x510
《遥远·传说》
!
setname
0
x511
《不详·征兆》
#sch 258 0x210-0x21f
!
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