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
Huangnan
no81cards
Commits
81224db7
Commit
81224db7
authored
May 10, 2020
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
14903c6d
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
238 additions
and
238 deletions
+238
-238
expansions/script/c1008007.lua
expansions/script/c1008007.lua
+1
-21
expansions/script/c115632163.lua
expansions/script/c115632163.lua
+79
-67
expansions/script/c115848157.lua
expansions/script/c115848157.lua
+5
-2
expansions/script/c123064604.lua
expansions/script/c123064604.lua
+2
-3
expansions/script/c46260002.lua
expansions/script/c46260002.lua
+4
-4
expansions/script/c46260004.lua
expansions/script/c46260004.lua
+49
-49
expansions/script/c84500028.lua
expansions/script/c84500028.lua
+1
-0
expansions/script/c84500029.lua
expansions/script/c84500029.lua
+1
-0
expansions/script/c84500031.lua
expansions/script/c84500031.lua
+1
-0
expansions/script/c84500032.lua
expansions/script/c84500032.lua
+48
-48
expansions/script/c84500033.lua
expansions/script/c84500033.lua
+38
-37
expansions/script/c9910504.lua
expansions/script/c9910504.lua
+6
-4
expansions/script/c9910509.lua
expansions/script/c9910509.lua
+3
-3
No files found.
expansions/script/c1008007.lua
View file @
81224db7
...
@@ -32,31 +32,11 @@ function c1008007.initial_effect(c)
...
@@ -32,31 +32,11 @@ function c1008007.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e
4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTarget
(
c1008007
.
target
)
e4
:
SetTarget
(
c1008007
.
target
)
e4
:
SetOperation
(
c1008007
.
operation
)
e4
:
SetOperation
(
c1008007
.
operation
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--creat void
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
1008007
,
1
))
e5
:
SetCategory
(
CATEGORY_EQUIP
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
+
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
1008001
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTarget
(
c1008007
.
voidtg
)
e5
:
SetOperation
(
c1008007
.
voidop
)
c
:
RegisterEffect
(
e5
)
--send remove
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCode
(
EFFECT_SEND_REPLACE
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetTarget
(
c1008007
.
reptarget
)
e6
:
SetOperation
(
c1008007
.
repoperation
)
c
:
RegisterEffect
(
e6
)
end
end
function
c1008007
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1008007
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
...
...
expansions/script/c115632163.lua
View file @
81224db7
...
@@ -27,14 +27,21 @@ function c115632163.initial_effect(c)
...
@@ -27,14 +27,21 @@ function c115632163.initial_effect(c)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_SPELLCASTER
))
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_SPELLCASTER
))
e4
:
SetValue
(
c115632163
.
atkval
)
e4
:
SetValue
(
c115632163
.
atkval
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e8
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e8
:
SetOperation
(
c115632163
.
regop
)
c
:
RegisterEffect
(
e8
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e5
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCode
(
EVENT_TO_GRAVE
)
e5
:
SetCondition
(
c115632163
.
thcon
)
e5
:
SetCondition
(
c115632163
.
thcon
)
e5
:
SetTarget
(
c115632163
.
thtg
)
e5
:
SetTarget
(
c115632163
.
thtg
)
e5
:
SetOperation
(
c115632163
.
thop
)
e5
:
SetOperation
(
c115632163
.
thop
)
e5
:
SetLabelObject
(
e8
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -61,10 +68,15 @@ end
...
@@ -61,10 +68,15 @@ end
function
c115632163
.
atkval
(
e
,
c
)
function
c115632163
.
atkval
(
e
,
c
)
return
e
:
GetHandler
():
GetCounter
(
0x1
)
*
100
return
e
:
GetHandler
():
GetCounter
(
0x1
)
*
100
end
end
function
c115632163
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115632163
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetCounter
(
0x1
)
local
ct
=
c
:
GetCounter
(
0x1
)
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
end
function
c115632163
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
e
:
GetLabelObject
():
GetLabel
()
e
:
SetLabel
(
ct
)
return
ct
>
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_DESTROY
)
return
ct
>
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c115632163
.
filter
(
c
,
lv
)
function
c115632163
.
filter
(
c
,
lv
)
...
...
expansions/script/c115848157.lua
View file @
81224db7
...
@@ -40,16 +40,19 @@ function c115848157.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,16 +40,19 @@ function c115848157.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCost
(
aux
.
bfgcost
)
e1
:
SetTarget
(
c115848157
.
sptg
)
e1
:
SetTarget
(
c115848157
.
sptg
)
e1
:
SetOperation
(
c115848157
.
spop
)
e1
:
SetOperation
(
c115848157
.
spop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c115848157
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c115848157
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToRemove
()
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c115848157
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115848157
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
expansions/script/c123064604.lua
View file @
81224db7
...
@@ -80,7 +80,7 @@ function c123064604.discon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,7 +80,7 @@ function c123064604.discon(e,tp,eg,ep,ev,re,r,rp)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c123064604
.
sumfilter
(
c
,
lv
)
function
c123064604
.
sumfilter
(
c
,
lv
)
return
c
:
GetLevel
()
>=
lv
and
c
:
IsSummonable
(
true
,
nil
,
1
)
or
c
:
IsMSetable
(
true
,
nil
,
1
)
and
not
c
:
IsPublic
()
return
c
:
GetLevel
()
>=
lv
and
(
c
:
IsSummonable
(
true
,
nil
,
1
)
or
c
:
IsMSetable
(
true
,
nil
,
1
)
)
and
not
c
:
IsPublic
()
end
end
function
c123064604
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c123064604
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
...
@@ -109,11 +109,10 @@ function c123064604.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -109,11 +109,10 @@ function c123064604.disop(e,tp,eg,ep,ev,re,r,rp)
local
s2
=
tc
:
IsMSetable
(
true
,
nil
,
1
)
local
s2
=
tc
:
IsMSetable
(
true
,
nil
,
1
)
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
,
1
)
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
,
1
)
Duel
.
NegateActivation
(
ev
)
else
else
Duel
.
MSet
(
tp
,
tc
,
true
,
nil
,
1
)
Duel
.
MSet
(
tp
,
tc
,
true
,
nil
,
1
)
Duel
.
NegateActivation
(
ev
)
end
end
Duel
.
NegateActivation
(
ev
)
end
end
end
end
function
c123064604
.
cfilter
(
c
)
function
c123064604
.
cfilter
(
c
)
...
...
expansions/script/c46260002.lua
View file @
81224db7
...
@@ -37,7 +37,7 @@ function c46260002.initial_effect(c)
...
@@ -37,7 +37,7 @@ function c46260002.initial_effect(c)
end
end
c46260002
.
fit_monster
=
{
46260003
}
c46260002
.
fit_monster
=
{
46260003
}
function
c46260002
.
spfilter
(
c
,
e
,
tp
,
mc
)
function
c46260002
.
spfilter
(
c
,
e
,
tp
,
mc
)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
(
not
c
.
mat_filter
or
c
.
mat_filter
(
mc
,
tp
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
and
mc
:
IsCanBeRitualMaterial
(
c
)
return
bit
.
band
(
c
:
Get
Original
Type
(),
0x81
)
==
0x81
and
(
not
c
.
mat_filter
or
c
.
mat_filter
(
mc
,
tp
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
and
mc
:
IsCanBeRitualMaterial
(
c
)
end
end
function
c46260002
.
rfilter
(
c
,
mc
)
function
c46260002
.
rfilter
(
c
,
mc
)
local
mlv
=
mc
:
GetRitualLevel
(
c
)
local
mlv
=
mc
:
GetRitualLevel
(
c
)
...
@@ -75,7 +75,7 @@ function c46260002.rtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,7 +75,7 @@ function c46260002.rtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
return
mg
:
IsExists
(
c46260002
.
filter
,
1
,
nil
,
e
,
tp
)
return
mg
:
IsExists
(
c46260002
.
filter
,
1
,
nil
,
e
,
tp
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_PZONE
)
end
end
function
c46260002
.
rop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46260002
.
rop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
...
@@ -91,7 +91,7 @@ function c46260002.rop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -91,7 +91,7 @@ function c46260002.rop(e,tp,eg,ep,ev,re,r,rp)
local
mat
=
mg
:
FilterSelect
(
tp
,
c46260002
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
local
mat
=
mg
:
FilterSelect
(
tp
,
c46260002
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
local
mc
=
mat
:
GetFirst
()
local
mc
=
mat
:
GetFirst
()
if
not
mc
then
return
end
if
not
mc
then
return
end
local
sg
=
Duel
.
GetMatchingGroup
(
c46260002
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
mc
,
e
,
tp
,
mc
)
local
sg
=
Duel
.
GetMatchingGroup
(
c46260002
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_PZONE
,
0
,
mc
,
e
,
tp
,
mc
)
if
mc
:
IsLocation
(
LOCATION_MZONE
)
then
ft
=
ft
+
1
end
if
mc
:
IsLocation
(
LOCATION_MZONE
)
then
ft
=
ft
+
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
local
b1
=
sg
:
IsExists
(
c46260002
.
rfilter
,
1
,
nil
,
mc
)
local
b1
=
sg
:
IsExists
(
c46260002
.
rfilter
,
1
,
nil
,
mc
)
...
@@ -119,7 +119,7 @@ function c46260002.rop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -119,7 +119,7 @@ function c46260002.rop(e,tp,eg,ep,ev,re,r,rp)
for
tc
in
aux
.
Next
(
tg
)
do
for
tc
in
aux
.
Next
(
tg
)
do
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
end
end
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat
,
REASON_RELEASE
+
REASON_EFFECT
+
REASON_RITUAL
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
for
tc
in
aux
.
Next
(
tg
)
do
for
tc
in
aux
.
Next
(
tg
)
do
Duel
.
SpecialSummonStep
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
...
...
expansions/script/c46260004.lua
View file @
81224db7
...
@@ -56,7 +56,7 @@ function c46260004.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c46260004.effop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
n
,
tc
)
local
mat
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetRitualLevel
,
tc
:
GetLevel
(),
1
,
n
,
tc
)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat
,
REASON_RELEASE
+
REASON_EFFECT
)
Duel
.
SendtoGrave
(
mat
,
REASON_RELEASE
+
REASON_EFFECT
+
REASON_RITUAL
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
false
,
true
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
...
...
expansions/script/c84500028.lua
View file @
81224db7
...
@@ -43,5 +43,6 @@ function c84500028.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,5 +43,6 @@ function c84500028.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c84500028
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84500028
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c84500029.lua
View file @
81224db7
...
@@ -45,6 +45,7 @@ function c84500029.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,6 +45,7 @@ function c84500029.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c84500029
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84500029
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
disfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
disfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
not
tg
then
return
end
if
not
tg
then
return
end
...
...
expansions/script/c84500031.lua
View file @
81224db7
...
@@ -45,6 +45,7 @@ function c84500031.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,6 +45,7 @@ function c84500031.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c84500031
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84500031
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanChangePosition
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanChangePosition
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
not
tg
then
return
end
if
not
tg
then
return
end
...
...
expansions/script/c84500032.lua
View file @
81224db7
...
@@ -44,7 +44,7 @@ function c84500032.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -44,7 +44,7 @@ function c84500032.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c84500032
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84500032
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
(
)
then
return
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c84500033.lua
View file @
81224db7
...
@@ -44,6 +44,7 @@ function c84500033.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -44,6 +44,7 @@ function c84500033.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c84500033
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84500033
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
local
n
=
Duel
.
Destroy
(
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
),
REASON_EFFECT
)
local
n
=
Duel
.
Destroy
(
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
),
REASON_EFFECT
)
if
n
>
0
then
if
n
>
0
then
Duel
.
Damage
(
1
-
tp
,
n
*
200
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
n
*
200
,
REASON_EFFECT
)
...
...
expansions/script/c9910504.lua
View file @
81224db7
...
@@ -49,15 +49,17 @@ function c9910504.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,15 +49,17 @@ function c9910504.target(e,tp,eg,ep,ev,re,r,rp,chk)
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
c9910504
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910504
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Group
.
CreateGroup
()
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
atkg
=
Duel
.
GetMatchingGroup
(
c9910504
.
atkfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
local
atkg
=
Duel
.
GetMatchingGroup
(
c9910504
.
atkfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
e
)
local
g1
=
Duel
.
GetMatchingGroup
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
c9910504
.
filter
,
e
,
tp
,
mg
,
nil
,
Card
.
GetLevel
,
"Greater"
)
local
g1
=
Duel
.
GetMatchingGroup
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
c9910504
.
filter
,
e
,
tp
,
mg
,
nil
,
Card
.
GetLevel
,
"Greater"
)
local
g2
=
Duel
.
GetMatchingGroup
(
c9910504
.
filter2
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
,
atkg
)
local
g2
=
Duel
.
GetMatchingGroup
(
c9910504
.
filter2
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
,
atkg
)
g1
:
Merge
(
g2
)
g
:
Merge
(
g1
)
if
g1
:
GetCount
()
==
0
then
return
end
g
:
Merge
(
g2
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
g
1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
not
g2
:
IsContains
(
tc
)
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9910504
,
0
),
aux
.
Stringid
(
9910504
,
1
))
==
0
then
if
g1
:
IsContains
(
tc
)
and
(
not
g2
:
IsContains
(
tc
)
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
9910504
,
0
),
aux
.
Stringid
(
9910504
,
1
))
==
0
)
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
if
tc
.
mat_filter
then
if
tc
.
mat_filter
then
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
tc
,
tp
)
mg
=
mg
:
Filter
(
tc
.
mat_filter
,
tc
,
tp
)
...
...
expansions/script/c9910509.lua
View file @
81224db7
...
@@ -76,7 +76,7 @@ function c9910509.indcon(e)
...
@@ -76,7 +76,7 @@ function c9910509.indcon(e)
local
tc
=
c
:
GetEquipTarget
()
local
tc
=
c
:
GetEquipTarget
()
return
tc
:
IsAttribute
(
ATTRIBUTE_FIRE
)
return
tc
:
IsAttribute
(
ATTRIBUTE_FIRE
)
end
end
function
c9910509
.
thcfilter
(
c
)
function
c9910509
.
thcfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xa950
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0xa950
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c9910509
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c9910509
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
end
end
...
@@ -84,9 +84,9 @@ function c9910509.thfilter(c,code)
...
@@ -84,9 +84,9 @@ function c9910509.thfilter(c,code)
return
c
:
IsSetCard
(
0xa950
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xa950
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
end
end
function
c9910509
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9910509
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9910509
.
thcfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9910509
.
thcfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9910509
.
thcfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9910509
.
thcfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
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