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
198942d4
Commit
198942d4
authored
Jul 19, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6b3513c0
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
422 additions
and
429 deletions
+422
-429
expansions/script/c114824019.lua
expansions/script/c114824019.lua
+2
-2
expansions/script/c115023.lua
expansions/script/c115023.lua
+103
-64
expansions/script/c115025.lua
expansions/script/c115025.lua
+83
-68
expansions/script/c115039.lua
expansions/script/c115039.lua
+79
-130
expansions/script/c115043.lua
expansions/script/c115043.lua
+97
-102
expansions/script/c115045.lua
expansions/script/c115045.lua
+22
-26
expansions/script/c13254034.lua
expansions/script/c13254034.lua
+1
-1
expansions/script/c13254072.lua
expansions/script/c13254072.lua
+2
-2
expansions/script/c13257216.lua
expansions/script/c13257216.lua
+1
-0
expansions/script/c33200958.lua
expansions/script/c33200958.lua
+1
-1
expansions/script/c60002047.lua
expansions/script/c60002047.lua
+25
-24
expansions/script/c60002053.lua
expansions/script/c60002053.lua
+1
-1
expansions/script/c9910315.lua
expansions/script/c9910315.lua
+1
-2
expansions/script/c9910432.lua
expansions/script/c9910432.lua
+1
-2
expansions/script/c9910909.lua
expansions/script/c9910909.lua
+2
-3
expansions/script/c9910973.lua
expansions/script/c9910973.lua
+1
-1
No files found.
expansions/script/c114824019.lua
View file @
198942d4
...
@@ -53,9 +53,9 @@ function c114824019.sumop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,9 +53,9 @@ function c114824019.sumop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
s1
=
c
:
IsSummonable
(
false
,
nil
)
local
s1
=
c
:
IsSummonable
(
false
,
nil
)
local
s2
=
c
:
IsMSetable
(
false
,
nil
)
local
s2
=
c
:
IsMSetable
(
false
,
nil
)
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
c
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
not
s2
then
if
(
s1
and
s2
and
Duel
.
SelectPosition
(
tp
,
c
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
or
(
s1
and
not
s2
)
then
Duel
.
Summon
(
tp
,
c
,
false
,
nil
)
Duel
.
Summon
(
tp
,
c
,
false
,
nil
)
else
else
if
s2
then
Duel
.
MSet
(
tp
,
c
,
false
,
nil
)
Duel
.
MSet
(
tp
,
c
,
false
,
nil
)
end
end
end
end
\ No newline at end of file
expansions/script/c115023.lua
View file @
198942d4
--方舟骑士-
临光
--方舟骑士-
蜜莓
c115023
.
named_with_Arknight
=
1
c115023
.
named_with_Arknight
=
1
function
c115023
.
initial_effect
(
c
)
function
c115023
.
initial_effect
(
c
)
--pendulum summon
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--
SpecialSummon
--
indes
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
Set
Category
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
Set
Type
(
EFFECT_TYPE_QUICK_O
)
e1
:
Set
Type
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
Set
Code
(
EVENT_FREE_CHAIN
)
e1
:
Set
Property
(
EFFECT_FLAG_DELAY
)
e1
:
Set
HintTiming
(
0
,
TIMING_STANDBY_PHASE
)
e1
:
Set
Code
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
Set
Range
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
115023
)
e1
:
SetCountLimit
(
1
,
115023
)
e1
:
Set
Target
(
c115023
.
sptg1
)
e1
:
Set
Cost
(
c115023
.
idcost
)
e1
:
Set
Operation
(
c115023
.
spop1
)
e1
:
Set
Target
(
c115023
.
idtg
)
c
:
RegisterEffect
(
e1
)
e1
:
SetOperation
(
c115023
.
idop
)
c
115023
.
summon_effect
=
e1
c
:
RegisterEffect
(
e1
)
--
SpecialSummon
--
XDestroy
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
115024
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetCondition
(
c115023
.
spcon
)
e2
:
SetCountLimit
(
1
,
215023
)
e2
:
SetTarget
(
c115023
.
sptg
)
e2
:
SetTarget
(
c115023
.
xdtg
)
e2
:
SetOperation
(
c115023
.
spop
)
e2
:
SetOperation
(
c115023
.
xdop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
--SpecialSummon P
function
c115023
.
cfilter2
(
c
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DESTROY
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
end
e3
:
SetRange
(
LOCATION_PZONE
)
function
c115023
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e3
:
SetCountLimit
(
1
,
315023
)
if
eg
:
IsContains
(
e
:
GetHandler
())
then
return
false
end
e3
:
SetCondition
(
c115023
.
pspcon
)
return
eg
:
IsExists
(
c115023
.
cfilter2
,
1
,
nil
,
tp
)
e3
:
SetTarget
(
c115023
.
psptg
)
end
e3
:
SetOperation
(
c115023
.
pspop
)
function
c115023
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
c
:
RegisterEffect
(
e3
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
800
)
end
end
function
c115023
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115023
.
idcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
chk
==
0
then
return
c
:
IsDiscardable
()
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
BreakEffect
()
end
Duel
.
Recover
(
tp
,
800
,
REASON_EFFECT
)
function
c115023
.
idfil
(
c
)
end
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
end
function
c115023
.
spfil
(
c
,
e
,
tp
)
function
c115023
.
idtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115023
.
idfil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
end
function
c115023
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c115023
.
idop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115023
.
spfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c115023
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
c115023
.
spfil
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c115023
.
idfil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
g
:
GetCount
()
<=
0
then
return
end
if
g
:
GetCount
()
>
0
then
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
2
,
nil
)
if
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
tc
=
sg
:
GetFirst
()
--
while
tc
do
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
--immune
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetDescription
(
aux
.
Stringid
(
115023
,
1
))
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_RANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetTarget
(
c115023
.
actfilter
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CLIENT_HINT
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
end
e1
:
SetValue
(
c115023
.
efilter
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
end
end
function
c115023
.
efilter
(
e
,
te
)
if
te
:
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
or
not
te
:
IsActivated
()
then
return
false
end
if
not
te
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
true
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
return
not
g
or
not
g
:
IsContains
(
e
:
GetHandler
())
end
end
function
c115023
.
actfilter
(
e
,
c
)
function
c115023
.
xdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
and
not
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsType
(
TYPE_MONSTER
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
))
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
e
:
GetHandler
())
>
0
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
\ No newline at end of file
end
function
c115023
.
xdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
c
:
IsLocation
(
LOCATION_EXTRA
))
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
e
:
GetHandler
())
>
0
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c115023
.
pspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
end
function
c115023
.
psptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
sc
=
Duel
.
GetFirstMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetTargetCard
(
sc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sc
,
1
,
0
,
0
)
end
function
c115023
.
pspfil
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c115023
.
pspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
Duel
.
IsExistingMatchingCard
(
c115023
.
pspfil
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115023
,
0
))
then
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c115023
.
pspfil
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
expansions/script/c115025.lua
View file @
198942d4
--方舟骑士-
瑕光
--方舟骑士-
华法琳
c115025
.
named_with_Arknight
=
1
c115025
.
named_with_Arknight
=
1
function
c115025
.
initial_effect
(
c
)
function
c115025
.
initial_effect
(
c
)
--pendulum summon
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--to hand
--XDestroy
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_RECOVER
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCountLimit
(
1
,
115025
)
e2
:
SetCountLimit
(
1
,
215025
)
e1
:
SetCost
(
c115025
.
thcost
)
e2
:
SetTarget
(
c115025
.
xdtg
)
e1
:
SetTarget
(
c115025
.
thtg
)
e2
:
SetOperation
(
c115025
.
xdop
)
e1
:
SetOperation
(
c115025
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e1
)
--SpecialSummon P
--set
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DESTROY
+
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
315025
)
e3
:
SetCode
(
EVENT_RECOVER
)
e3
:
SetCondition
(
c115025
.
pspcon
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetTarget
(
c115025
.
psptg
)
e3
:
SetCountLimit
(
1
,
115026
)
e3
:
SetOperation
(
c115025
.
pspop
)
e3
:
SetCondition
(
c115025
.
stcon
)
e3
:
SetTarget
(
c115025
.
sttg
)
e3
:
SetOperation
(
c115025
.
stop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c115025
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c115025
.
pspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c115025
.
psptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
sc
=
Duel
.
GetFirstMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetTargetCard
(
sc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sc
,
1
,
0
,
0
)
end
function
c115025
.
pthfil
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c115025
.
pspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
Duel
.
IsExistingMatchingCard
(
c115025
.
pthfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115025
,
0
))
then
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c115025
.
pthfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
end
end
function
c115025
.
xdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
end
function
c115025
.
xdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
c115025
.
atkcon
)
e1
:
SetOperation
(
c115025
.
atkop
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
2
)
else
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c115025
.
thfil
(
c
)
function
c115025
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
IsAbleToHand
()
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_PENDULUM
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
and
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c115025
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c115025
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115025
.
thfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_CARD
,
0
,
115025
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
0
)
if
g
:
GetCount
()
>
0
then
end
local
tc
=
g
:
GetFirst
()
function
c115025
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c115025
.
thfil
,
tp
,
LOCATION_DECK
,
0
,
nil
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
if
g
:
GetCount
()
<=
0
then
return
end
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
e1
:
SetRange
(
LOCATION_MZONE
)
Duel
.
SendtoHand
(
tg
,
tp
,
REASON_EFFECT
)
e1
:
SetValue
(
tc
:
GetAttack
()
*
2
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
local
tc
=
tg
:
GetFirst
()
tc
:
RegisterEffect
(
e1
)
Duel
.
Recover
(
tp
,
tc
:
GetAttack
()
/
2
,
REASON_EFFECT
)
end
function
c115025
.
stfil
(
c
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
end
function
c115025
.
stcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c115025
.
xgfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
end
function
c115025
.
xgfilter
(
c
)
return
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
)
end
function
c115025
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115025
.
xgfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
ep
==
tp
and
(
re
:
GetHandler
():
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
re
:
GetHandler
():
GetCode
()]
and
_G
[
"c"
..
re
:
GetHandler
():
GetCode
()].
named_with_Arknight
))
and
Duel
.
IsExistingMatchingCard
(
c115025
.
stfil
,
tp
,
LOCATION_DECK
,
0
,
2
,
nil
)
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_PZONE
,
0
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
tp
,
LOCATION_PZONE
)
end
function
c115025
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g1
=
Duel
.
GetMatchingGroup
(
c115025
.
stfil
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
and
g1
:
GetCount
()
>
1
then
local
tg
=
g1
:
Select
(
tp
,
2
,
2
,
nil
)
local
tc
=
tg
:
GetFirst
()
while
tc
do
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
tc
=
tg
:
GetNext
()
end
end
end
end
end
\ No newline at end of file
expansions/script/c115039.lua
View file @
198942d4
--不畏苦暗 临光-辉耀使徒
--方舟骑士-临光
c115039
.
named_with_Arknight
=
1
function
c115039
.
initial_effect
(
c
)
function
c115039
.
initial_effect
(
c
)
--
synchro
summon
--
pendulum
summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSynchroType
,
TYPE_PENDULUM
),
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_PENDULUM
),
1
,
1
)
aux
.
EnablePendulumAttribute
(
c
)
c
:
EnableReviveLimit
()
--SpecialSummon
--P atk up
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
Set
Range
(
LOCATION_PZONE
)
e1
:
Set
Code
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
Set
Code
(
EFFECT_UPDATE_ATTACK
)
e1
:
Set
Property
(
EFFECT_FLAG_DELAY
)
e1
:
Set
TargetRange
(
LOCATION_MZONE
,
0
)
e1
:
Set
CountLimit
(
1
,
115039
)
e1
:
SetTarget
(
c115039
.
atktg
)
e1
:
SetTarget
(
c115039
.
sptg
)
e1
:
Set
Value
(
800
)
e1
:
Set
Operation
(
c115039
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
--SpecialSummon P
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
local
e3
=
Effect
.
CreateEffect
(
c
)
c
:
RegisterEffect
(
e2
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DESTROY
)
--spsummon
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCountLimit
(
1
,
315039
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCondition
(
c115039
.
pspcon
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetTarget
(
c115039
.
psptg
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetOperation
(
c115039
.
pspop
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
,
115039
)
e3
:
SetCondition
(
c115039
.
spcon
)
e3
:
SetTarget
(
c115039
.
sptg
)
e3
:
SetOperation
(
c115039
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--code
end
local
e4
=
Effect
.
CreateEffect
(
c
)
function
c115039
.
spfil
(
c
,
e
,
tp
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
end
e4
:
SetCode
(
EFFECT_CHANGE_CODE
)
function
c115039
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e4
:
SetRange
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_EXTRA
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsSummonLocation
(
LOCATION_EXTRA
)
and
Duel
.
IsExistingMatchingCard
(
c115039
.
spfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
e4
:
SetCondition
(
c115039
.
codecon
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
e4
:
SetValue
(
115023
)
end
c
:
RegisterEffect
(
e4
)
function
c115039
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--negate
local
c
=
e
:
GetHandler
()
local
e5
=
Effect
.
CreateEffect
(
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c115039
.
spfil
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
e5
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_TODECK
)
if
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
e5
:
SetCode
(
EVENT_CHAINING
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
end
e5
:
SetRange
(
LOCATION_MZONE
)
end
e5
:
SetCondition
(
c115039
.
negcon
)
function
c115039
.
pspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e5
:
SetCost
(
c115039
.
negcost
)
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
e5
:
SetTarget
(
c115039
.
negtg
)
end
e5
:
SetOperation
(
c115039
.
negop
)
function
c115039
.
psptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
c
:
RegisterEffect
(
e5
)
local
sc
=
Duel
.
GetFirstMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
--pendulum
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
local
e6
=
Effect
.
CreateEffect
(
c
)
Duel
.
SetTargetCard
(
sc
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
e6
:
SetCode
(
EVENT_LEAVE_FIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sc
,
1
,
0
,
0
)
e6
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
end
e6
:
SetCondition
(
c115039
.
pencon
)
function
c115039
.
pspfil
(
c
,
e
,
tp
)
e6
:
SetTarget
(
c115039
.
pentg
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
e6
:
SetOperation
(
c115039
.
penop
)
end
c
:
RegisterEffect
(
e6
)
function
c115039
.
pspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c115039
.
atktg
(
e
,
c
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c115039
.
cfilter
(
c
,
tp
,
rp
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
)))
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
end
function
c115039
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c115039
.
cfilter
,
1
,
nil
,
tp
,
rp
)
end
function
c115039
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c115039
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
Duel
.
IsExistingMatchingCard
(
c115039
.
pspfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115039
,
0
))
then
function
c115039
.
codecon
(
e
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c115039
.
pspfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
c
=
e
:
GetHandler
()
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()
end
end
end
function
c115039
.
negfilter
(
c
,
tp
)
end
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
and
c
:
IsControler
(
tp
)
end
function
c115039
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
local
ex
,
tg1
,
tc
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_DESTROY
)
local
tg2
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
b1
=
not
(
re
:
IsHasCategory
(
CATEGORY_NEGATE
)
and
Duel
.
GetChainInfo
(
ev
-
1
,
CHAININFO_TRIGGERING_EFFECT
):
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
ex
and
tg1
~=
nil
and
tc
+
tg1
:
FilterCount
(
Card
.
IsOnField
,
nil
)
-
tg1
:
GetCount
()
>
0
local
b2
=
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
tg2
and
tg2
:
IsExists
(
c115039
.
negfilter
,
1
,
nil
,
tp
)
return
b1
or
b2
end
function
c115039
.
tdfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToDeckAsCost
()
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c115039
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c115039
.
tdfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115039
.
tdfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c115039
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
end
end
function
c115039
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
re
:
GetHandler
()
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
ec
:
CancelToGrave
()
Duel
.
SendtoDeck
(
ec
,
nil
,
2
,
REASON_EFFECT
)
end
end
function
c115039
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousControler
(
tp
)))
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
c115039
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
c115039
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
expansions/script/c115043.lua
View file @
198942d4
--
耀骑士 临光-烁夜之刃
--
方舟骑士-临光·耀骑士
c115043
.
named_with_Arknight
=
1
c115043
.
named_with_Arknight
=
1
function
c115043
.
initial_effect
(
c
)
function
c115043
.
initial_effect
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--pendulum summon
local
e1
=
Effect
.
CreateEffect
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
--change effect
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetValue
(
aux
.
ritlimit
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c115043
.
cecon
)
e1
:
SetOperation
(
c115043
.
ceop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--i
mmune
--i
ndes
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
)
e2
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e2
:
Set
Range
(
LOCATION_PZON
E
)
e2
:
Set
Property
(
EFFECT_FLAG_SET_AVAILABL
E
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_
BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_
COUNT
)
e2
:
Set
TargetRange
(
LOCATION_MZONE
,
0
)
e2
:
Set
Range
(
LOCATION_MZONE
)
e2
:
Set
Target
(
c115043
.
imtg
)
e2
:
Set
Condition
(
c115043
.
indcon
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
c115043
.
indct
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy & search
--SpecialSummon P
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
,
115043
)
e3
:
SetCountLimit
(
1
,
315043
)
e3
:
SetTarget
(
c115043
.
thtg
)
e3
:
SetCondition
(
c115043
.
pspcon
)
e3
:
SetOperation
(
c115043
.
thop
)
e3
:
SetTarget
(
c115043
.
psptg
)
e3
:
SetOperation
(
c115043
.
pspop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--change
--material check
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_DISABLE
+
CATEGORY_COUNTER
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCondition
(
c115043
.
chcon
)
e4
:
SetOperation
(
c115043
.
chop
)
c
:
RegisterEffect
(
e4
)
--indes
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_NO_TURN_RESET
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e5
:
SetCondition
(
c115043
.
matcon
)
e5
:
SetCountLimit
(
4
)
e5
:
SetOperation
(
c115043
.
matop
)
e5
:
SetValue
(
c115043
.
valcon
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--material check
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e6
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e6
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e6
:
SetValue
(
c115043
.
valcheck
)
e6
:
SetCondition
(
c115043
.
matcon
)
e6
:
SetLabelObject
(
e5
)
e6
:
SetOperation
(
c115043
.
matop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e7
:
SetValue
(
c115043
.
valcheck
)
e7
:
SetLabelObject
(
e6
)
c
:
RegisterEffect
(
e7
)
end
function
c115043
.
mat_filter
(
c
)
return
not
c
:
IsLevel
(
11
)
end
function
c115043
.
imtg
(
e
,
c
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
end
function
c115043
.
thfilter
(
c
)
function
c115043
.
cecon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
end
function
c115043
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c115043
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
return
c
:
GetFlagEffect
(
115043
)
~=
0
and
c
:
GetFlagEffect
(
215043
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
115046
,
nil
,
TYPES_TOKEN_MONSTER
,
0
,
2000
,
6
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
c
,
1
,
0
,
0
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
function
c115043
.
ceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c115043
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
~=
0
then
if
c
:
GetFlagEffect
(
215043
)
==
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115043
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_CARD
,
0
,
115043
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c115043
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
c
:
RegisterFlagEffect
(
215043
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
if
g
:
GetCount
()
>
0
then
local
g
=
Group
.
CreateGroup
()
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ChangeChainOperation
(
ev
,
c115043
.
repop
)
end
end
end
end
function
c115043
.
indcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
115043
)
~=
0
end
function
c115043
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
return
4
else
return
0
end
end
end
function
c115043
.
mfilter
(
c
)
function
c115043
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
c
:
IsOriginalCodeRule
(
115023
,
115039
)
local
token
=
Duel
.
CreateToken
(
tp
,
115046
)
Duel
.
SpecialSummon
(
token
,
0
,
1
-
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c115043
.
pspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
end
function
c115043
.
gthfil
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c115043
.
pgck
(
g
)
return
g
:
FilterCount
(
Card
.
IsCode
,
nil
,
115045
)
==
1
and
g
:
FilterCount
(
c115043
.
gthfil
,
nil
)
==
1
end
function
c115043
.
psptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
cg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
sc
=
Duel
.
GetFirstMatchingCard
(
nil
,
tp
,
LOCATION_PZONE
,
0
,
e
:
GetHandler
())
if
chk
==
0
then
return
cg
:
CheckSubGroup
(
c115043
.
pgck
,
2
,
2
)
end
local
dg
=
Group
.
FromCards
(
sc
,
e
:
GetHandler
())
Duel
.
SetTargetCard
(
dg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
2
,
0
,
0
)
end
function
c115043
.
pthfil
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c115043
.
pspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
cg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
FilterCount
(
Card
.
IsRelateToEffect
,
nil
,
e
)
==
2
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
2
and
cg
:
CheckSubGroup
(
c115043
.
pgck
,
2
,
2
)
then
local
sg
=
cg
:
SelectSubGroup
(
tp
,
c115043
.
pgck
,
false
,
2
,
2
)
Duel
.
SendtoHand
(
sg
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
function
c115043
.
matcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115043
.
matcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
and
e
:
GetLabel
()
==
1
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
and
e
:
GetLabel
()
==
1
end
end
function
c115043
.
mfilter
(
c
)
return
c
:
IsOriginalCodeRule
(
115039
)
end
function
c115043
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115043
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
115043
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
115043
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
115043
,
1
)
)
end
end
function
c115043
.
valcheck
(
e
,
c
)
function
c115043
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
if
g
:
GetCount
()
>
0
and
not
g
:
IsExists
(
c115043
.
mfilter
,
1
,
nil
)
then
if
g
:
GetCount
()
>
0
and
g
:
IsExists
(
c115043
.
mfilter
,
1
,
nil
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
e
:
GetLabelObject
():
SetLabel
(
1
)
else
else
e
:
GetLabelObject
():
SetLabel
(
0
)
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
end
end
function
c115043
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
115043
)
>
0
and
e
:
GetHandler
():
GetFlagEffect
(
115044
)
<=
0
end
function
c115043
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
115046
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
2000
,
11
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP
,
1
-
tp
)
then
return
end
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
115043
,
0
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
115043
)
local
g
=
Group
.
CreateGroup
()
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ChangeChainOperation
(
ev
,
c115043
.
repop
)
c
:
RegisterFlagEffect
(
115044
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c115043
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
token
=
Duel
.
CreateToken
(
tp
,
115046
)
Duel
.
SpecialSummon
(
token
,
0
,
1
-
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c115043
.
valcon
(
e
,
re
,
r
,
rp
)
return
(
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
or
(
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
1
-
e
:
GetHandlerPlayer
()))
and
e
:
GetHandler
():
GetFlagEffect
(
115043
)
>
0
end
expansions/script/c115045.lua
View file @
198942d4
--方舟骑士追逐黎明
--方舟骑士追逐黎明
c115045
.
named_with_Arknight
=
1
function
c115045
.
initial_effect
(
c
)
function
c115045
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
115043
)
aux
.
AddCodeList
(
c
,
115043
)
--Activate
--Activate
...
@@ -8,40 +9,30 @@ function c115045.initial_effect(c)
...
@@ -8,40 +9,30 @@ function c115045.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
115045
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
115045
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c115045
.
target
)
e1
:
SetTarget
(
c115045
.
target
)
e1
:
SetOperation
(
c115045
.
operation
)
e1
:
SetOperation
(
c115045
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c115045
.
exfilter0
(
c
)
function
c115045
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
return
c
:
IsCode
(
115043
)
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
1
)
and
c
:
IsAbleToGrave
()
end
function
c115045
.
filter
(
c
)
return
c
:
GetOriginalCode
()
==
115043
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
end
end
function
c115045
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c115045
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_PENDULUM
)
local
sg
=
nil
local
mg2
=
nil
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
<
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
c115045
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
sg
=
Duel
.
GetMatchingGroup
(
c115045
.
exfilter0
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
end
return
Duel
.
IsExistingMatchingCard
(
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
c115045
.
filter
,
e
,
tp
,
mg
,
sg
,
Card
.
GetLevel
,
"Greater"
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c115045
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c115045
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
Card
.
IsType
,
nil
,
TYPE_PENDULUM
)
local
sg
=
nil
local
mg2
=
nil
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
<
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
then
sg
=
Duel
.
GetMatchingGroup
(
c115045
.
exfilter0
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
c115045
.
filter
,
e
,
tp
,
mg
,
sg
,
Card
.
GetLevel
,
"Greater"
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
RitualUltimateFilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
c115045
.
filter
,
e
,
tp
,
mg
,
mg2
,
Card
.
GetLevel
,
"Greater"
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
tc
then
if
tc
then
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
mg
=
mg
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
tc
,
tc
)
if
sg
then
if
mg2
then
mg
:
Merge
(
sg
)
mg
:
Merge
(
mg2
)
end
end
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
)
...
@@ -54,12 +45,17 @@ function c115045.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,12 +45,17 @@ function c115045.operation(e,tp,eg,ep,ev,re,r,rp)
aux
.
GCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
not
mat
or
mat
:
GetCount
()
==
0
then
return
end
if
not
mat
or
mat
:
GetCount
()
==
0
then
return
end
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
local
mat2
=
mat
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
mat
:
Sub
(
mat2
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
SendtoGrave
(
mat2
,
REASON_EFFECT
+
REASON_MATERIAL
+
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
()
end
end
end
end
expansions/script/c13254034.lua
View file @
198942d4
...
@@ -48,7 +48,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,7 +48,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
tp
,
600
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
600
,
REASON_EFFECT
)
if
e
:
GetLabel
()
==
1
then
if
e
:
GetLabel
()
==
1
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c13254072.lua
View file @
198942d4
...
@@ -44,9 +44,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,9 +44,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc1
=
nil
local
tc1
=
nil
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
tc1
=
e
:
GetOperatedGroup
()
tc1
=
Duel
.
GetOperatedGroup
()
hb
=
false
hb
=
false
if
not
hb
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
m
,
2
))
then
if
not
hb
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
hb
=
true
hb
=
true
end
end
...
...
expansions/script/c13257216.lua
View file @
198942d4
...
@@ -65,6 +65,7 @@ end
...
@@ -65,6 +65,7 @@ end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
ct
=
tama
.
cosmicBattleship_getCoreLevel
(
ec
)
local
ct
=
tama
.
cosmicBattleship_getCoreLevel
(
ec
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c33200958.lua
View file @
198942d4
...
@@ -68,7 +68,7 @@ end
...
@@ -68,7 +68,7 @@ end
--e2
--e2
function
c33200958
.
thfilter
(
c
)
function
c33200958
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x632a
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x632a
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
33200958
)
end
end
function
c33200958
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33200958
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33200958
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_DECK
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33200958
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_DECK
,
0
,
1
,
e
:
GetHandler
())
end
...
...
expansions/script/c60002047.lua
View file @
198942d4
...
@@ -14,18 +14,18 @@ function cm.initial_effect(c)
...
@@ -14,18 +14,18 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
thtg
)
e2
:
SetTarget
(
cm
.
thtg
)
e2
:
SetOperation
(
cm
.
thop
)
e2
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
destroy
--
negate
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_D
ESTROY
)
e2
:
SetCategory
(
CATEGORY_D
ISABLE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
m
+
10000000
)
e2
:
SetCountLimit
(
1
,
m
+
10000000
)
e2
:
SetCost
(
cm
.
cost
)
e2
:
SetCondition
(
cm
.
negcon
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetOperation
(
cm
.
activate
)
e2
:
SetTarget
(
cm
.
negtg
)
e2
:
SetOperation
(
cm
.
negop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -47,23 +47,24 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,23 +47,24 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tfilter
(
c
,
tp
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
return
c
:
IsControler
(
tp
)
and
c
:
IsFaceup
()
and
c
:
IsAttack
(
3950
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
end
end
function
cm
.
filter
(
c
)
function
cm
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
IsFaceup
()
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
cm
.
tfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsOnField
()
and
cm
.
filter
(
chkc
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
NegateEffect
(
ev
)
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
expansions/script/c60002053.lua
View file @
198942d4
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
cm
.
dscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
dscost
(
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsOnField
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
,
nil
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
,
nil
)
end
end
function
cm
.
dsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
dsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c9910315.lua
View file @
198942d4
...
@@ -67,8 +67,7 @@ function c9910315.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,8 +67,7 @@ function c9910315.negcon(e,tp,eg,ep,ev,re,r,rp)
local
g
=
c
:
GetEquipGroup
()
local
g
=
c
:
GetEquipGroup
()
return
g
:
IsExists
(
c9910315
.
cfilter
,
1
,
nil
)
and
rp
==
1
-
tp
return
g
:
IsExists
(
c9910315
.
cfilter
,
1
,
nil
)
and
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
c
:
GetFlagEffect
(
9910315
)
==
0
and
c
:
GetFlagEffect
(
9910315
)
==
0
end
end
function
c9910315
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910315
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
9910315
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
9910315
,
0
))
then
...
...
expansions/script/c9910432.lua
View file @
198942d4
...
@@ -50,8 +50,7 @@ end
...
@@ -50,8 +50,7 @@ end
function
c9910432
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910432
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c9910432
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c9910432
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
Duel
.
IsChainDisablable
(
ev
)
and
e
:
GetHandler
():
GetFlagEffect
(
9910432
)
<=
0
and
e
:
GetHandler
():
GetFlagEffect
(
9910432
)
<=
0
end
end
function
c9910432
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910432
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
...
...
expansions/script/c9910909.lua
View file @
198942d4
...
@@ -43,7 +43,7 @@ function c9910909.negcon1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function c9910909.negcon1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
local
sg
=
g
:
Filter
(
Card
.
IsFaceup
,
nil
)
local
sg
=
g
:
Filter
(
Card
.
IsFaceup
,
nil
)
return
sg
and
sg
:
GetClassCount
(
Card
.
GetRace
)
>=
3
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
sg
and
sg
:
GetClassCount
(
Card
.
GetRace
)
>=
3
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
Duel
.
GetFlagEffect
(
tp
,
9910909
)
==
0
and
Duel
.
IsChainDisablable
(
ev
)
and
Duel
.
GetFlagEffect
(
tp
,
9910909
)
==
0
end
end
function
c9910909
.
negop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910909
.
negop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectEffectYesNo
(
tp
,
aux
.
Stringid
(
9910909
,
0
))
then
if
Duel
.
SelectEffectYesNo
(
tp
,
aux
.
Stringid
(
9910909
,
0
))
then
...
@@ -62,8 +62,7 @@ function c9910909.negcon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,8 +62,7 @@ function c9910909.negcon2(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
Duel
.
IsExistingMatchingCard
(
c9910909
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
return
Duel
.
IsExistingMatchingCard
(
c9910909
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
and
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
c
:
GetFlagEffect
(
9910910
)
==
0
and
c
:
GetFlagEffect
(
9910910
)
==
0
end
end
function
c9910909
.
negop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910909
.
negop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
9910909
,
1
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
9910909
,
1
))
then
...
...
expansions/script/c9910973.lua
View file @
198942d4
...
@@ -83,7 +83,7 @@ function c9910973.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,7 +83,7 @@ function c9910973.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
g2
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g2
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
loc
=
loc
-
tc
:
GetLocation
()
end
if
tc
then
loc
=
loc
-
tc
:
GetLocation
()
end
if
tc
and
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_ADJUST
,
nil
,
0
,
PLAYER_NONE
,
PLAYER_NONE
,
0
)
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_ADJUST
,
nil
,
0
,
PLAYER_NONE
,
PLAYER_NONE
,
0
)
g
=
Duel
.
GetMatchingGroup
(
c9910973
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
g
=
Duel
.
GetMatchingGroup
(
c9910973
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
tp
)
if
Duel
.
IsExistingMatchingCard
(
c9910973
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
)
then
if
Duel
.
IsExistingMatchingCard
(
c9910973
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
)
then
...
...
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