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
9f8c7f05
Commit
9f8c7f05
authored
Apr 22, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d1dc6bb8
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
967 additions
and
933 deletions
+967
-933
expansions/script/c60152301.lua
expansions/script/c60152301.lua
+109
-108
expansions/script/c60152304.lua
expansions/script/c60152304.lua
+68
-68
expansions/script/c60152311.lua
expansions/script/c60152311.lua
+124
-123
expansions/script/c60152312.lua
expansions/script/c60152312.lua
+1
-0
expansions/script/c60152313.lua
expansions/script/c60152313.lua
+149
-148
expansions/script/c60152314.lua
expansions/script/c60152314.lua
+3
-2
expansions/script/c60152315.lua
expansions/script/c60152315.lua
+197
-196
expansions/script/c60152316.lua
expansions/script/c60152316.lua
+139
-138
expansions/script/c60159907.lua
expansions/script/c60159907.lua
+1
-1
expansions/script/c60159909.lua
expansions/script/c60159909.lua
+13
-13
expansions/script/c60159910.lua
expansions/script/c60159910.lua
+7
-2
expansions/script/c60159911.lua
expansions/script/c60159911.lua
+2
-1
expansions/script/c60159915.lua
expansions/script/c60159915.lua
+3
-2
expansions/script/c60159917.lua
expansions/script/c60159917.lua
+1
-1
expansions/script/c60159918.lua
expansions/script/c60159918.lua
+106
-100
expansions/script/c60159919.lua
expansions/script/c60159919.lua
+20
-20
expansions/script/c60159921.lua
expansions/script/c60159921.lua
+1
-1
expansions/script/c60159924.lua
expansions/script/c60159924.lua
+7
-6
expansions/strings.conf
expansions/strings.conf
+16
-3
No files found.
expansions/script/c60152301.lua
View file @
9f8c7f05
...
...
@@ -97,7 +97,7 @@ function c60152301.e2tgfilter(c)
end
function
c60152301
.
e2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetOverlayCount
(
tp
,
1
,
1
)
-
1
if
chk
==
0
then
return
ct
>
0
or
(
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2opfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
)
if
chk
==
0
then
return
ct
>
0
or
(
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2opfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
))
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
...
...
@@ -107,12 +107,13 @@ end
function
c60152301
.
e2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetOverlayCount
(
tp
,
1
,
1
)
local
g0
=
Duel
.
GetMatchingGroup
(
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g0
:
GetCount
()
>
0
and
ct
>
0
then
local
g00
=
Duel
.
GetMatchingGroup
(
c60152301
.
e2opfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
)
if
(
g0
:
GetCount
()
>
0
and
g00
:
GetCount
()
>
0
)
and
ct
>
0
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
8
))
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
3
,
REASON_EFFECT
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
6
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
e
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
,
e
)
Duel
.
HintSelection
(
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
7
))
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -120,9 +121,9 @@ function c60152301.e2op(e,tp,eg,ep,ev,re,r,rp)
local
tc2
=
g2
:
GetFirst
()
Duel
.
Overlay
(
tc2
,
g1
)
end
elseif
not
g0
:
GetCount
()
>
0
and
ct
>
0
then
elseif
g0
:
GetCount
()
==
0
and
ct
>
0
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
3
,
REASON_EFFECT
)
elseif
g0
:
GetCount
()
>
0
and
not
ct
>
0
then
elseif
g0
:
GetCount
()
>
0
and
not
ct
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
6
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
e
)
Duel
.
HintSelection
(
g1
)
...
...
expansions/script/c60152304.lua
View file @
9f8c7f05
...
...
@@ -48,7 +48,7 @@ function c60152304.e1tgfilter(c)
end
function
c60152304
.
e1tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c60152304
.
e1tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60152304
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60152304
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsAbleToEnterBP
(
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c60152304
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
expansions/script/c60152311.lua
View file @
9f8c7f05
...
...
@@ -118,6 +118,7 @@ end
function
c60152311
.
e99op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g0
=
Group
.
CreateGroup
()
local
gb
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
)
...
...
expansions/script/c60152312.lua
View file @
9f8c7f05
...
...
@@ -116,6 +116,7 @@ end
function
c60152312
.
e99op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g0
=
Group
.
CreateGroup
()
local
gb
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
)
...
...
expansions/script/c60152313.lua
View file @
9f8c7f05
...
...
@@ -141,6 +141,7 @@ end
function
c60152313
.
e99op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g0
=
Group
.
CreateGroup
()
local
gb
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
)
...
...
expansions/script/c60152314.lua
View file @
9f8c7f05
...
...
@@ -87,7 +87,7 @@ function c60152314.e2op(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetReset
(
RESET_EVENT
+
RESET
_TURN_SET
+
RESET_OVERLAY
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESET
S_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c60152314
.
e2opcon
)
e1
:
SetOperation
(
c60152314
.
e2opop
)
tc
:
RegisterEffect
(
e1
)
...
...
@@ -120,7 +120,7 @@ function c60152314.e2op(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetReset
(
RESET_EVENT
+
RESET
_TURN_SET
+
RESET_OVERLAY
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESET
S_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c60152314
.
e2opcon
)
e1
:
SetOperation
(
c60152314
.
e2opop
)
tc
:
RegisterEffect
(
e1
)
...
...
@@ -172,6 +172,7 @@ end
function
c60152314
.
e99op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g0
=
Group
.
CreateGroup
()
local
gb
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
)
...
...
expansions/script/c60152315.lua
View file @
9f8c7f05
...
...
@@ -197,6 +197,7 @@ end
function
c60152315
.
e99op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g0
=
Group
.
CreateGroup
()
local
gb
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
)
...
...
expansions/script/c60152316.lua
View file @
9f8c7f05
...
...
@@ -135,6 +135,7 @@ end
function
c60152316
.
e99op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g0
=
Group
.
CreateGroup
()
local
gb
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_GRAVE
,
0
)
...
...
expansions/script/c60159907.lua
View file @
9f8c7f05
...
...
@@ -52,7 +52,7 @@ end
function
c60159907
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
Get
MZoneCount
(
tp
)
>-
2
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
CheckReleaseGroup
(
tp
,
c60159907
.
spfilter1
,
1
,
nil
,
tp
,
c
)
end
function
c60159907
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
...
...
expansions/script/c60159909.lua
View file @
9f8c7f05
...
...
@@ -5,7 +5,7 @@ function c60159909.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
60159909
)
e1
:
SetCountLimit
(
1
,
60159909
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
0x1c0
)
c
:
RegisterEffect
(
e1
)
--adjust
...
...
expansions/script/c60159910.lua
View file @
9f8c7f05
...
...
@@ -7,16 +7,21 @@ function c60159910.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
60159910
)
e1
:
SetCost
(
c60159910
.
cost
)
e1
:
SetTarget
(
c60159910
.
target
)
e1
:
SetOperation
(
c60159910
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c60159910
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c60159910
.
filter
(
c
)
return
c
:
Is
Facedown
()
and
c
:
IsAbleToChangeControler
(
)
return
c
:
Is
AbleToChangeControler
()
and
not
c
:
IsType
(
TYPE_PENDULUM
)
end
function
c60159910
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c60159910
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
2
and
Duel
.
IsExistingTarget
(
c60159910
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60159910
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
...
...
expansions/script/c60159911.lua
View file @
9f8c7f05
...
...
@@ -52,7 +52,7 @@ function c60159911.spfilter(c)
end
function
c60159911
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
Get
MZoneCount
(
c
:
GetControler
()
)
>
0
return
Duel
.
Get
LocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60159911
.
spfilter
,
c
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
2
,
nil
)
end
function
c60159911
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
...
...
@@ -60,6 +60,7 @@ function c60159911.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
end
function
c60159911
.
aclimit
(
e
,
re
,
tp
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
e
:
GetHandler
():
GetSummonLocation
()
==
LOCATION_HAND
and
e
:
GetHandler
():
IsFaceup
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
bit
.
band
(
re
:
GetHandler
():
GetSummonLocation
(),
LOCATION_EXTRA
+
LOCATION_GRAVE
)
~=
0
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c60159911
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c60159915.lua
View file @
9f8c7f05
--地狱使者亲临
function
c60159915
.
initial_effect
(
c
)
aux
.
Add
RitualProcGreaterCode
(
c
,
60159914
)
aux
.
Add
CodeList
(
c
,
60159914
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -22,6 +22,7 @@ function c60159915.initial_effect(c)
e2
:
SetOperation
(
c60159915
.
activate
)
c
:
RegisterEffect
(
e2
)
end
c60159915
.
fit_monster
=
{
60159914
}
function
c60159915
.
filter
(
c
,
e
,
tp
,
m
)
if
not
c
:
IsCode
(
60159914
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
...
...
expansions/script/c60159917.lua
View file @
9f8c7f05
...
...
@@ -57,7 +57,7 @@ function c60159917.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
expansions/script/c60159918.lua
View file @
9f8c7f05
...
...
@@ -23,7 +23,7 @@ function c60159918.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
c60159918
.
val
)
c
:
RegisterEffect
(
e4
)
...
...
@@ -31,7 +31,7 @@ function c60159918.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_DELAY
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
c60159918
.
adval
)
c
:
RegisterEffect
(
e4
)
...
...
@@ -53,17 +53,17 @@ function c60159918.initial_effect(c)
end
function
c60159918
.
sprfilter1
(
c
,
tp
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c60159918
.
sprfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
lv
)
end
function
c60159918
.
sprfilter2
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
~=
lv
and
not
c
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsA
ttribute
(
ATTRIBUTE_EARTH
)
and
c
:
IsA
bleToGraveAsCost
()
and
c
:
IsAbleToGraveAsCost
()
end
function
c60159918
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetMZoneCount
(
tp
)
>-
2
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingMatchingCard
(
c60159918
.
sprfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
function
c60159918
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
...
...
@@ -101,29 +101,35 @@ function c60159918.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c60159918
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetTarget
(
c60159918
.
tg
)
e1
:
SetValue
(
c60159918
.
atkval
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
((
tc
:
GetAttack
())
/
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
local
e5
=
e1
:
Clone
()
e5
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e5
:
SetValue
((
tc
:
GetDefense
())
/
2
)
c
:
RegisterEffect
(
e5
)
tc
=
g
:
GetNext
()
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c60159918
.
thcon
)
e1
:
SetOperation
(
c60159918
.
thop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e2
:
SetValue
(
c60159918
.
defval
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c60159918
.
thcon
)
e3
:
SetOperation
(
c60159918
.
thop
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
c60159918
.
tg
(
e
,
c
)
return
c
:
IsFaceup
()
end
function
c60159918
.
atkval
(
e
,
c
)
return
c
:
GetAttack
()
/
2
end
function
c60159918
.
defval
(
e
,
c
)
return
c
:
GetDefense
()
/
2
end
function
c60159918
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
GetAttack
()
~=
c
:
GetBaseAttack
()
or
c
:
GetDefense
()
~=
c
:
GetBaseDefense
())
...
...
expansions/script/c60159919.lua
View file @
9f8c7f05
...
...
@@ -10,14 +10,14 @@ function c60159919.initial_effect(c)
e1
:
SetOperation
(
c60159919
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c60159919
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
function
c60159919
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
end
function
c60159919
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c60159919
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c60159919
.
spfilter1
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60159919
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60159919
.
spfilter1
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
...
...
expansions/script/c60159921.lua
View file @
9f8c7f05
...
...
@@ -39,7 +39,7 @@ function c60159921.effcon(e)
return
e
:
GetHandler
():
GetOverlayCount
()
>
0
end
function
c60159921
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c60159921
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
expansions/script/c60159924.lua
View file @
9f8c7f05
...
...
@@ -29,7 +29,7 @@ function c60159924.filter(c)
and
bit
.
band
(
c
:
GetSummonLocation
(),
LOCATION_EXTRA
+
LOCATION_GRAVE
)
~=
0
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
end
function
c60159924
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
1
-
tp
)
and
c
60159924
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c60159924
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60159924
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c60159924
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
@@ -38,7 +38,8 @@ function c60159924.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
code
=
tc
:
GetCode
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
and
tc
:
IsControler
(
1
-
tp
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -55,7 +56,7 @@ function c60159924.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SET_ATTACK
)
e3
:
SetValue
(
0
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -82,7 +83,7 @@ function c60159924.activate2(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
code
=
tc
:
GetCode
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
and
tc
:
Is
Controler
(
1
-
tp
)
and
tc
:
Is
Type
(
TYPE_EFFECT
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
and
tc
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/strings.conf
View file @
9f8c7f05
...
...
@@ -161,21 +161,34 @@
!
setname
0
x6da0
幻梦迷境
!
setname
0
x9da0
星光歌剧
#LaiBill 601 0xb20-0xb2f
#LaiBill
529508379
601 0xb20-0xb2f
!
setname
0
xab20
幻想曲
!
setname
0
xcb20
乐章
!
setname
0
x3b21
千夜
!
setname
0
x5b21
天玲
!
setname
0
x9b21
天夜
!
setname
0
xab21
绘雨
!
setname
0
xb22
乖离
!
setname
0
x5b22
纯白型
!
setname
0
x3b23
爱莎
!
setname
0
x5b23
晓美焰
!
setname
0
x9b23
├军团┤
!
setname
0
x6b23
FantasiaT
!
setname
0
x9b23
军团
!
setname
0
xab23
两仪式
!
setname
0
xcb23
圣白莲
!
setname
0
x3b24
天符
!
setname
0
x3b26
天空的水晶部队
!
setname
0
x6b25
佐仓杏子
!
setname
0
xcb25
鹿目圆香
!
setname
0
x3b26
天空的水晶部队
!
setname
0
x6b26
魔铳
!
setname
0
x9b26
魔缎
!
setname
0
xab26
线膛燧发枪
!
setname
0
xcb26
连结姬
!
setname
0
x6b27
皇家骑士
!
setname
0
x9b27
何蒙库鲁兹
!
setname
0
xab27
素晴
!
setname
0
x3b28
LUKA
!
setname
0
x9b28
RWBY
#星眼 334 0x340-0x34f
!
setname
0
x340
灵装
...
...
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