Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
db0c5617
Commit
db0c5617
authored
Jun 04, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-scripts
parents
e91e0a93
11f6d8d8
Changes
70
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
70 changed files
with
859 additions
and
834 deletions
+859
-834
c15005145.lua
c15005145.lua
+1
-1
c15171722.lua
c15171722.lua
+1
-1
c15982593.lua
c15982593.lua
+1
-1
c17272964.lua
c17272964.lua
+1
-1
c17462320.lua
c17462320.lua
+1
-1
c17550376.lua
c17550376.lua
+1
-1
c18158393.lua
c18158393.lua
+1
-1
c18494511.lua
c18494511.lua
+1
-1
c19403423.lua
c19403423.lua
+1
-1
c19671433.lua
c19671433.lua
+1
-1
c20515672.lua
c20515672.lua
+1
-1
c2116237.lua
c2116237.lua
+1
-1
c21368273.lua
c21368273.lua
+1
-1
c22404675.lua
c22404675.lua
+2
-2
c25774450.lua
c25774450.lua
+1
-1
c27345070.lua
c27345070.lua
+1
-1
c29280200.lua
c29280200.lua
+128
-128
c29302858.lua
c29302858.lua
+109
-109
c29510428.lua
c29510428.lua
+1
-1
c30095833.lua
c30095833.lua
+1
-1
c31600513.lua
c31600513.lua
+1
-1
c31987203.lua
c31987203.lua
+1
-1
c35026117.lua
c35026117.lua
+1
-1
c37343995.lua
c37343995.lua
+2
-2
c38041940.lua
c38041940.lua
+2
-0
c38798785.lua
c38798785.lua
+1
-1
c40785230.lua
c40785230.lua
+1
-1
c42822433.lua
c42822433.lua
+1
-1
c43944080.lua
c43944080.lua
+1
-1
c44760562.lua
c44760562.lua
+1
-1
c45065541.lua
c45065541.lua
+1
-1
c47873397.lua
c47873397.lua
+1
-1
c51779204.lua
c51779204.lua
+1
-1
c53485634.lua
c53485634.lua
+1
-1
c53754104.lua
c53754104.lua
+1
-1
c54594017.lua
c54594017.lua
+1
-1
c54851325.lua
c54851325.lua
+1
-1
c55688914.lua
c55688914.lua
+123
-123
c56510115.lua
c56510115.lua
+1
-1
c56727340.lua
c56727340.lua
+1
-1
c57357130.lua
c57357130.lua
+1
-1
c58884063.lua
c58884063.lua
+6
-6
c60023855.lua
c60023855.lua
+1
-1
c65305978.lua
c65305978.lua
+1
-1
c66150724.lua
c66150724.lua
+1
-1
c66401502.lua
c66401502.lua
+110
-110
c66736715.lua
c66736715.lua
+1
-1
c71164684.lua
c71164684.lua
+1
-1
c71277255.lua
c71277255.lua
+1
-1
c71948047.lua
c71948047.lua
+1
-1
c73355951.lua
c73355951.lua
+3
-3
c7336745.lua
c7336745.lua
+1
-1
c75728539.lua
c75728539.lua
+1
-1
c76840111.lua
c76840111.lua
+1
-1
c77765207.lua
c77765207.lua
+1
-1
c78098950.lua
c78098950.lua
+1
-1
c79210531.lua
c79210531.lua
+1
-1
c81978611.lua
c81978611.lua
+1
-1
c82090807.lua
c82090807.lua
+1
-1
c82112494.lua
c82112494.lua
+1
-1
c83334932.lua
c83334932.lua
+1
-1
c84384943.lua
c84384943.lua
+1
-1
c86852702.lua
c86852702.lua
+67
-46
c91073013.lua
c91073013.lua
+128
-128
c91300233.lua
c91300233.lua
+1
-1
c92895501.lua
c92895501.lua
+116
-116
c9336190.lua
c9336190.lua
+3
-1
c95243515.lua
c95243515.lua
+1
-1
c97417863.lua
c97417863.lua
+1
-1
c98905.lua
c98905.lua
+4
-4
No files found.
c15005145.lua
View file @
db0c5617
...
...
@@ -84,4 +84,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
\ No newline at end of file
end
c15171722.lua
View file @
db0c5617
...
...
@@ -98,4 +98,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
\ No newline at end of file
end
c15982593.lua
View file @
db0c5617
...
...
@@ -82,4 +82,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
tc
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c17272964.lua
View file @
db0c5617
...
...
@@ -67,4 +67,4 @@ function s.atkcon(e)
end
function
s
.
atktg
(
e
,
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsFaceup
()
end
\ No newline at end of file
end
c17462320.lua
View file @
db0c5617
...
...
@@ -72,4 +72,4 @@ function c17462320.thop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c17550376.lua
View file @
db0c5617
...
...
@@ -55,4 +55,4 @@ function c17550376.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c18158393.lua
View file @
db0c5617
...
...
@@ -63,4 +63,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c18494511.lua
View file @
db0c5617
...
...
@@ -56,4 +56,4 @@ function c18494511.splimit(e,c)
end
function
c18494511
.
codecon
(
e
)
return
e
:
GetHandler
():
GetEquipCount
()
>
0
end
\ No newline at end of file
end
c19403423.lua
View file @
db0c5617
...
...
@@ -81,4 +81,4 @@ function c19403423.nsumsuc(e,tp,eg,ep,ev,re,r,rp)
end
function
c19403423
.
efun
(
e
,
ep
,
tp
)
return
ep
==
tp
or
not
e
:
IsActiveType
(
TYPE_MONSTER
)
end
\ No newline at end of file
end
c19671433.lua
View file @
db0c5617
...
...
@@ -77,4 +77,4 @@ function s.tunop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c20515672.lua
View file @
db0c5617
...
...
@@ -70,4 +70,4 @@ function c20515672.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
\ No newline at end of file
end
c2116237.lua
View file @
db0c5617
...
...
@@ -129,4 +129,4 @@ function c2116237.thop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c21368273.lua
View file @
db0c5617
...
...
@@ -90,4 +90,4 @@ function c21368273.lvop(e,tp,eg,ep,ev,re,r,rp)
end
function
c21368273
.
splimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
\ No newline at end of file
end
c22404675.lua
View file @
db0c5617
...
...
@@ -31,10 +31,10 @@ function c22404675.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c22404675
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
22404676
,
0
,
TYPES_TOKEN_MONSTER
,
800
,
1000
,
1
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
22404676
,
0
,
TYPES_TOKEN_MONSTER
,
800
,
1000
,
1
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
22404676
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
...
...
c25774450.lua
View file @
db0c5617
...
...
@@ -35,4 +35,4 @@ function c25774450.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
GetControl
(
cc
,
1
-
tp
)
end
end
end
\ No newline at end of file
end
c27345070.lua
View file @
db0c5617
...
...
@@ -40,4 +40,4 @@ function c27345070.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
end
c29280200.lua
View file @
db0c5617
This diff is collapsed.
Click to expand it.
c29302858.lua
View file @
db0c5617
--VS ラゼン
function
c29302858
.
initial_effect
(
c
)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29302858
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
29302858
)
e1
:
SetTarget
(
c29302858
.
thtg
)
e1
:
SetOperation
(
c29302858
.
thop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--show fire for indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
29302858
,
1
))
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
29302859
)
e3
:
SetCost
(
c29302858
.
indescost
)
e3
:
SetTarget
(
c29302858
.
indestg
)
e3
:
SetOperation
(
c29302858
.
indesop
)
c
:
RegisterEffect
(
e3
)
--show fire and dark for destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
29302858
,
2
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
29302859
)
e4
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e4
:
SetCost
(
c29302858
.
descost
)
e4
:
SetTarget
(
c29302858
.
destg
)
e4
:
SetOperation
(
c29302858
.
desop
)
c
:
RegisterEffect
(
e4
)
end
function
c29302858
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x195
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
function
c29302858
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29302858
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
29302858
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
29302858
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c29302858
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29302858
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c29302858
.
indescfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c29302858
.
indescost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29302858
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29302858
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c29302858
.
indestg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
29302858
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
29302858
,
RESET_CHAIN
,
0
,
1
)
end
function
c29302858
.
indesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
c
:
RegisterEffect
(
e1
)
end
function
c29302858
.
descfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
+
ATTRIBUTE_DARK
)
and
not
c
:
IsPublic
()
end
function
c29302858
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c29302858
.
descfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_FIRE
,
ATTRIBUTE_DARK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_FIRE
,
ATTRIBUTE_DARK
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c29302858
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
GetFlagEffect
(
tp
,
29302858
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
29302858
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
function
c29302858
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
--VS ラゼン
function
c29302858
.
initial_effect
(
c
)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29302858
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
29302858
)
e1
:
SetTarget
(
c29302858
.
thtg
)
e1
:
SetOperation
(
c29302858
.
thop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--show fire for indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
29302858
,
1
))
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
29302859
)
e3
:
SetCost
(
c29302858
.
indescost
)
e3
:
SetTarget
(
c29302858
.
indestg
)
e3
:
SetOperation
(
c29302858
.
indesop
)
c
:
RegisterEffect
(
e3
)
--show fire and dark for destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
29302858
,
2
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
29302859
)
e4
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e4
:
SetCost
(
c29302858
.
descost
)
e4
:
SetTarget
(
c29302858
.
destg
)
e4
:
SetOperation
(
c29302858
.
desop
)
c
:
RegisterEffect
(
e4
)
end
function
c29302858
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x195
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
function
c29302858
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29302858
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
29302858
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
29302858
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c29302858
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29302858
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c29302858
.
indescfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c29302858
.
indescost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29302858
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29302858
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c29302858
.
indestg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
29302858
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
29302858
,
RESET_CHAIN
,
0
,
1
)
end
function
c29302858
.
indesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
c
:
RegisterEffect
(
e1
)
end
function
c29302858
.
descfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
+
ATTRIBUTE_DARK
)
and
not
c
:
IsPublic
()
end
function
c29302858
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c29302858
.
descfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_FIRE
,
ATTRIBUTE_DARK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_FIRE
,
ATTRIBUTE_DARK
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c29302858
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
GetFlagEffect
(
tp
,
29302858
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
29302858
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
function
c29302858
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
c29510428.lua
View file @
db0c5617
...
...
@@ -84,4 +84,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
\ No newline at end of file
end
c30095833.lua
View file @
db0c5617
...
...
@@ -102,4 +102,4 @@ function c30095833.penop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
\ No newline at end of file
end
c31600513.lua
View file @
db0c5617
...
...
@@ -74,4 +74,4 @@ function c31600513.thop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToBattle
()
and
tc
:
IsControler
(
1
-
tp
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c31987203.lua
View file @
db0c5617
...
...
@@ -75,4 +75,4 @@ function c31987203.penop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
\ No newline at end of file
end
c35026117.lua
View file @
db0c5617
...
...
@@ -71,4 +71,4 @@ function c35026117.tfop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
end
c37343995.lua
View file @
db0c5617
...
...
@@ -64,8 +64,8 @@ function c37343995.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c37343995
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c37343995
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
...
...
c38041940.lua
View file @
db0c5617
...
...
@@ -23,6 +23,7 @@ end
function
c38041940
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c38041940
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsExistingTarget
(
c38041940
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38041941
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
@@ -34,6 +35,7 @@ function c38041940.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_PLANT
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38041941
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
38041941
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c38798785.lua
View file @
db0c5617
...
...
@@ -155,4 +155,4 @@ end
function
s
.
resetop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ResetFlagEffect
(
tp
,
id
)
e
:
Reset
()
end
\ No newline at end of file
end
c40785230.lua
View file @
db0c5617
...
...
@@ -148,4 +148,4 @@ function c40785230.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
\ No newline at end of file
end
c42822433.lua
View file @
db0c5617
...
...
@@ -74,4 +74,4 @@ function c42822433.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
c42822433
.
atktg
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_XYZ
)
end
\ No newline at end of file
end
c43944080.lua
View file @
db0c5617
...
...
@@ -56,4 +56,4 @@ function c43944080.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c43944080
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
end
\ No newline at end of file
end
c44760562.lua
View file @
db0c5617
...
...
@@ -62,4 +62,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c45065541.lua
View file @
db0c5617
...
...
@@ -68,4 +68,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
end
c47873397.lua
View file @
db0c5617
...
...
@@ -87,4 +87,4 @@ function s.damval(e,re,val,r,rp,rc)
if
r
&
REASON_EFFECT
==
REASON_EFFECT
then
return
val
*
2
else
return
val
end
end
\ No newline at end of file
end
c51779204.lua
View file @
db0c5617
...
...
@@ -75,4 +75,4 @@ function c51779204.effcon(e)
end
function
c51779204
.
damcon
(
e
)
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
end
\ No newline at end of file
end
c53485634.lua
View file @
db0c5617
...
...
@@ -45,7 +45,7 @@ end
function
c53485634
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c53485634
.
filter
,
nil
,
e
,
tp
)
if
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
0
and
g
:
GetCount
()
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
...
...
c53754104.lua
View file @
db0c5617
...
...
@@ -71,4 +71,4 @@ function c53754104.posop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
end
\ No newline at end of file
end
c54594017.lua
View file @
db0c5617
...
...
@@ -50,4 +50,4 @@ function c54594017.desop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c54851325.lua
View file @
db0c5617
...
...
@@ -86,4 +86,4 @@ function c54851325.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c55688914.lua
View file @
db0c5617
--VS プルトンHG
function
c55688914
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
55688914
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
55688914
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCondition
(
c55688914
.
spcon
)
e1
:
SetTarget
(
c55688914
.
sptg
)
e1
:
SetOperation
(
c55688914
.
spop
)
c
:
RegisterEffect
(
e1
)
--show fire for def up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55688914
,
1
))
e2
:
SetCategory
(
CATEGORY_DEFCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
55688915
)
e2
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e2
:
SetCondition
(
aux
.
dscon
)
e2
:
SetCost
(
c55688914
.
defcost
)
e2
:
SetTarget
(
c55688914
.
deftg
)
e2
:
SetOperation
(
c55688914
.
defop
)
c
:
RegisterEffect
(
e2
)
--show earth and dark for atk up
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
55688914
,
2
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
55688915
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e3
:
SetCondition
(
aux
.
dscon
)
e3
:
SetCost
(
c55688914
.
atkcost
)
e3
:
SetTarget
(
c55688914
.
atktg
)
e3
:
SetOperation
(
c55688914
.
atkop
)
c
:
RegisterEffect
(
e3
)
end
function
c55688914
.
spcfilter1
(
c
)
return
c
:
GetSequence
()
<
5
end
function
c55688914
.
spcfilter2
(
c
)
return
c
:
GetSequence
()
<
5
and
c
:
IsSetCard
(
0x195
)
and
c
:
IsFaceup
()
end
function
c55688914
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
~=
1
-
tp
then
return
false
end
local
ct1
=
Duel
.
GetMatchingGroupCount
(
c55688914
.
spcfilter1
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ct2
=
Duel
.
GetMatchingGroupCount
(
c55688914
.
spcfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
ct1
==
0
or
ct1
==
ct2
end
function
c55688914
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetFlagEffect
(
tp
,
55688914
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
55688914
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c55688914
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c55688914
.
defcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c55688914
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c55688914
.
defcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c55688914
.
defcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c55688914
.
deftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
55688914
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
55688914
,
RESET_CHAIN
,
0
,
1
)
end
function
c55688914
.
defop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
3000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
function
c55688914
.
atkcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_DARK
)
and
not
c
:
IsPublic
()
end
function
c55688914
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c55688914
.
atkcfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_DARK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_DARK
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c55688914
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
55688914
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
55688914
,
RESET_CHAIN
,
0
,
1
)
end
function
c55688914
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
3000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
--VS プルトンHG
function
c55688914
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
55688914
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
55688914
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCondition
(
c55688914
.
spcon
)
e1
:
SetTarget
(
c55688914
.
sptg
)
e1
:
SetOperation
(
c55688914
.
spop
)
c
:
RegisterEffect
(
e1
)
--show fire for def up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55688914
,
1
))
e2
:
SetCategory
(
CATEGORY_DEFCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
55688915
)
e2
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e2
:
SetCondition
(
aux
.
dscon
)
e2
:
SetCost
(
c55688914
.
defcost
)
e2
:
SetTarget
(
c55688914
.
deftg
)
e2
:
SetOperation
(
c55688914
.
defop
)
c
:
RegisterEffect
(
e2
)
--show earth and dark for atk up
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
55688914
,
2
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
55688915
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e3
:
SetCondition
(
aux
.
dscon
)
e3
:
SetCost
(
c55688914
.
atkcost
)
e3
:
SetTarget
(
c55688914
.
atktg
)
e3
:
SetOperation
(
c55688914
.
atkop
)
c
:
RegisterEffect
(
e3
)
end
function
c55688914
.
spcfilter1
(
c
)
return
c
:
GetSequence
()
<
5
end
function
c55688914
.
spcfilter2
(
c
)
return
c
:
GetSequence
()
<
5
and
c
:
IsSetCard
(
0x195
)
and
c
:
IsFaceup
()
end
function
c55688914
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
~=
1
-
tp
then
return
false
end
local
ct1
=
Duel
.
GetMatchingGroupCount
(
c55688914
.
spcfilter1
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ct2
=
Duel
.
GetMatchingGroupCount
(
c55688914
.
spcfilter2
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
ct1
==
0
or
ct1
==
ct2
end
function
c55688914
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetFlagEffect
(
tp
,
55688914
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
55688914
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c55688914
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c55688914
.
defcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c55688914
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c55688914
.
defcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c55688914
.
defcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c55688914
.
deftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
55688914
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
55688914
,
RESET_CHAIN
,
0
,
1
)
end
function
c55688914
.
defop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
3000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
function
c55688914
.
atkcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_DARK
)
and
not
c
:
IsPublic
()
end
function
c55688914
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c55688914
.
atkcfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_DARK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_DARK
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c55688914
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
55688914
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
55688914
,
RESET_CHAIN
,
0
,
1
)
end
function
c55688914
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
3000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
c56510115.lua
View file @
db0c5617
...
...
@@ -70,4 +70,4 @@ function c56510115.atktg(e,c)
end
function
c56510115
.
atkval
(
e
,
c
)
return
c
:
GetCurrentScale
()
*
300
end
\ No newline at end of file
end
c56727340.lua
View file @
db0c5617
...
...
@@ -75,4 +75,4 @@ function c56727340.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
\ No newline at end of file
end
c57357130.lua
View file @
db0c5617
...
...
@@ -78,4 +78,4 @@ function s.spdpop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c58884063.lua
View file @
db0c5617
...
...
@@ -45,14 +45,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
desfilter
(
c
,
tp
,
seq
)
local
sseq
=
c
:
GetSequence
()
if
c
:
IsControler
(
tp
)
then
return
sseq
==
5
and
seq
==
3
or
sseq
==
6
and
seq
==
1
if
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
then
return
sseq
==
5
and
seq
==
3
or
sseq
==
6
and
seq
==
1
or
sseq
==
3
and
seq
==
5
or
sseq
==
1
and
seq
==
6
end
if
c
:
IsLocation
(
LOCATION_SZONE
)
then
if
c
:
Is
Controler
(
tp
)
and
c
:
Is
Location
(
LOCATION_SZONE
)
then
return
sseq
<
5
and
sseq
==
seq
end
if
sseq
<
5
then
return
math.abs
(
sseq
-
seq
)
==
1
return
math.abs
(
sseq
-
seq
)
==
1
or
sseq
==
1
and
seq
==
5
or
sseq
==
3
and
seq
==
6
end
if
sseq
>=
5
then
return
sseq
==
5
and
seq
==
1
or
sseq
==
6
and
seq
==
3
...
...
@@ -60,8 +60,8 @@ function s.desfilter(c,tp,seq)
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
tc
,
tp
,
tc
:
GetSequence
())
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
then
local
cg
=
Duel
.
GetMatchingGroup
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
tc
,
1
-
tc
:
GetControler
()
,
tc
:
GetSequence
())
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
and
#
cg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
...
...
c60023855.lua
View file @
db0c5617
...
...
@@ -85,4 +85,4 @@ function c60023855.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
end
c65305978.lua
View file @
db0c5617
...
...
@@ -100,4 +100,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
xyz
=
xyzg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
XyzSummon
(
tp
,
xyz
,
g
,
1
,
6
)
end
end
\ No newline at end of file
end
c66150724.lua
View file @
db0c5617
...
...
@@ -124,4 +124,4 @@ function c66150724.disop(e,tp,eg,ep,ev,re,r,rp)
if
re
:
GetActiveType
()
==
TYPE_PENDULUM
+
TYPE_SPELL
and
p
==
tp
and
bit
.
band
(
loc
,
LOCATION_PZONE
)
~=
0
then
Duel
.
NegateEffect
(
ev
)
end
end
\ No newline at end of file
end
c66401502.lua
View file @
db0c5617
--VS パンテラ
function
c66401502
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
66401502
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
66401502
)
e1
:
SetCondition
(
c66401502
.
spcon
)
e1
:
SetTarget
(
c66401502
.
sptg
)
e1
:
SetOperation
(
c66401502
.
spop
)
c
:
RegisterEffect
(
e1
)
--show earth for indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
66401502
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
66401503
)
e2
:
SetCost
(
c66401502
.
indescost
)
e2
:
SetCondition
(
aux
.
bpcon
)
e2
:
SetTarget
(
c66401502
.
indestg
)
e2
:
SetOperation
(
c66401502
.
indesop
)
c
:
RegisterEffect
(
e2
)
--show earth and fire for destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
66401502
,
2
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
66401503
)
e3
:
SetHintTiming
(
0
,
TIMING_EQUIP
+
TIMING_END_PHASE
)
e3
:
SetCost
(
c66401502
.
descost
)
e3
:
SetTarget
(
c66401502
.
destg
)
e3
:
SetOperation
(
c66401502
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c66401502
.
spcfilter
(
c
)
return
c
:
GetSequence
()
<
5
end
function
c66401502
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
c66401502
.
spcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c66401502
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetFlagEffect
(
tp
,
66401502
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
66401502
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c66401502
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c66401502
.
indescfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
not
c
:
IsPublic
()
end
function
c66401502
.
indescost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66401502
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c66401502
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c66401502
.
indestg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
66401502
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
66401502
,
RESET_CHAIN
,
0
,
1
)
end
function
c66401502
.
indesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
c
:
RegisterEffect
(
e1
)
end
function
c66401502
.
descfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c66401502
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c66401502
.
descfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c66401502
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
GetFlagEffect
(
tp
,
66401502
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
66401502
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
function
c66401502
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
--VS パンテラ
function
c66401502
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
66401502
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
66401502
)
e1
:
SetCondition
(
c66401502
.
spcon
)
e1
:
SetTarget
(
c66401502
.
sptg
)
e1
:
SetOperation
(
c66401502
.
spop
)
c
:
RegisterEffect
(
e1
)
--show earth for indes
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
66401502
,
1
))
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
66401503
)
e2
:
SetCost
(
c66401502
.
indescost
)
e2
:
SetCondition
(
aux
.
bpcon
)
e2
:
SetTarget
(
c66401502
.
indestg
)
e2
:
SetOperation
(
c66401502
.
indesop
)
c
:
RegisterEffect
(
e2
)
--show earth and fire for destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
66401502
,
2
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
66401503
)
e3
:
SetHintTiming
(
0
,
TIMING_EQUIP
+
TIMING_END_PHASE
)
e3
:
SetCost
(
c66401502
.
descost
)
e3
:
SetTarget
(
c66401502
.
destg
)
e3
:
SetOperation
(
c66401502
.
desop
)
c
:
RegisterEffect
(
e3
)
end
function
c66401502
.
spcfilter
(
c
)
return
c
:
GetSequence
()
<
5
end
function
c66401502
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
c66401502
.
spcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c66401502
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetFlagEffect
(
tp
,
66401502
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
66401502
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c66401502
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c66401502
.
indescfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
not
c
:
IsPublic
()
end
function
c66401502
.
indescost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66401502
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c66401502
.
indescfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c66401502
.
indestg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
66401502
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
66401502
,
RESET_CHAIN
,
0
,
1
)
end
function
c66401502
.
indesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
c
:
RegisterEffect
(
e1
)
end
function
c66401502
.
descfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c66401502
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c66401502
.
descfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c66401502
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
GetFlagEffect
(
tp
,
66401502
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
66401502
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
function
c66401502
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToChain
()
then
return
end
local
g
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
c66736715.lua
View file @
db0c5617
...
...
@@ -65,4 +65,4 @@ function s.expop(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
pendvalue
(
e
,
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
end
\ No newline at end of file
end
c71164684.lua
View file @
db0c5617
...
...
@@ -68,4 +68,4 @@ function s.repval(e,c)
end
function
s
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
\ No newline at end of file
end
c71277255.lua
View file @
db0c5617
...
...
@@ -69,4 +69,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
\ No newline at end of file
end
c71948047.lua
View file @
db0c5617
...
...
@@ -87,4 +87,4 @@ function c71948047.setop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
end
end
\ No newline at end of file
end
c73355951.lua
View file @
db0c5617
...
...
@@ -23,7 +23,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
@@ -33,10 +34,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetTargetsRelateToChain
()
if
#
g
==
2
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
local
sc1
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
tp
):
GetFirst
()
local
sc2
=
g
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
):
GetFirst
()
if
sc1
and
Duel
.
SpecialSummonStep
(
sc1
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
and
sc2
then
if
sc1
and
Duel
.
SpecialSummonStep
(
sc1
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
and
sc2
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
SpecialSummonStep
(
sc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
SpecialSummonComplete
()
...
...
c7336745.lua
View file @
db0c5617
...
...
@@ -64,4 +64,4 @@ function c7336745.damop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
\ No newline at end of file
end
c75728539.lua
View file @
db0c5617
...
...
@@ -95,4 +95,4 @@ function c75728539.thop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c76840111.lua
View file @
db0c5617
...
...
@@ -120,4 +120,4 @@ function c76840111.efilter3(c)
end
function
c76840111
.
efilter4
(
c
)
return
c
:
IsSetCard
(
0x1046
)
and
c
:
IsFaceup
()
end
\ No newline at end of file
end
c77765207.lua
View file @
db0c5617
...
...
@@ -81,4 +81,4 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SSet
(
tp
,
g
:
GetFirst
())
end
end
\ No newline at end of file
end
c78098950.lua
View file @
db0c5617
...
...
@@ -77,4 +77,4 @@ function c78098950.todop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_CARD
,
0
,
78098950
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
\ No newline at end of file
end
c79210531.lua
View file @
db0c5617
...
...
@@ -58,4 +58,4 @@ function c79210531.thop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
==
0
then
return
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
\ No newline at end of file
end
c81978611.lua
View file @
db0c5617
...
...
@@ -80,4 +80,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
end
c82090807.lua
View file @
db0c5617
...
...
@@ -80,4 +80,4 @@ function c82090807.dhop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetOverlayCount
()
>
0
then
tc
:
RemoveOverlayCard
(
tp
,
1
,
2
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
c82112494.lua
View file @
db0c5617
...
...
@@ -107,4 +107,4 @@ function c82112494.penop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
\ No newline at end of file
end
c83334932.lua
View file @
db0c5617
...
...
@@ -66,4 +66,4 @@ function c83334932.lvop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c84384943.lua
View file @
db0c5617
...
...
@@ -62,4 +62,4 @@ end
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
\ No newline at end of file
end
c86852702.lua
View file @
db0c5617
...
...
@@ -7,63 +7,84 @@ function c86852702.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
86852702
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c86852702
.
cost
1
)
e1
:
SetTarget
(
c86852702
.
target
1
)
e1
:
SetOperation
(
c86852702
.
activate
1
)
e1
:
SetCost
(
c86852702
.
cost
)
e1
:
SetTarget
(
c86852702
.
target
)
e1
:
SetOperation
(
c86852702
.
activate
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
86852702
,
1
))
e2
:
SetCost
(
c86852702
.
cost2
)
e2
:
SetTarget
(
c86852702
.
target2
)
e2
:
SetOperation
(
c86852702
.
activate2
)
c
:
RegisterEffect
(
e2
)
end
function
c86852702
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
function
c86852702
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c86852702
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c86852702
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
if
hg
then
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
end
function
c86852702
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
true
end
end
function
c86852702
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsDiscardable
()
end
function
c86852702
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86852702
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
DiscardHand
(
tp
,
c86852702
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
function
c86852702
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c86852702
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
not
c
:
IsCode
(
86852702
)
and
c
:
IsAbleToHand
()
end
function
c86852702
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
function
c86852702
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
count1
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
count2
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
and
count1
>=
2
local
b2
=
Duel
.
IsExistingMatchingCard
(
c86852702
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
and
count2
>=
2
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
b1
or
b2
else
return
count1
>=
2
or
count2
>=
2
end
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
),
aux
.
Stringid
(
86852702
,
1
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
1
))
+
1
end
if
op
==
0
then
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
else
Duel
.
DiscardHand
(
tp
,
c86852702
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
e
:
SetLabel
(
0
,
op
)
else
local
op
=
0
if
count1
>=
2
and
count2
>=
2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
),
aux
.
Stringid
(
86852702
,
1
))
elseif
count1
>=
2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
0
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
86852702
,
1
))
+
1
end
e
:
SetLabel
(
0
,
op
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c86852702
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
if
hg
then
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
function
c86852702
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
label
,
op
=
e
:
GetLabel
()
if
op
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
if
hg
then
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
end
else
local
g
=
Duel
.
GetMatchingGroup
(
c86852702
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
hg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
if
hg
then
Duel
.
SendtoHand
(
hg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
end
end
end
c91073013.lua
View file @
db0c5617
This diff is collapsed.
Click to expand it.
c91300233.lua
View file @
db0c5617
...
...
@@ -80,4 +80,4 @@ function c91300233.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
end
c92895501.lua
View file @
db0c5617
--VS ヘヴィ・ボーガー
function
c92895501
.
initial_effect
(
c
)
--return and spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
92895501
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
92895501
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetCondition
(
c92895501
.
spcon
)
e1
:
SetTarget
(
c92895501
.
sptg
)
e1
:
SetOperation
(
c92895501
.
spop
)
c
:
RegisterEffect
(
e1
)
--show dark for draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
92895501
,
1
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
92895502
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCost
(
c92895501
.
drcost
)
e2
:
SetTarget
(
c92895501
.
drtg
)
e2
:
SetOperation
(
c92895501
.
drop
)
c
:
RegisterEffect
(
e2
)
--show earth and fire for damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
92895501
,
2
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
92895502
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetCost
(
c92895501
.
dmgcost
)
e3
:
SetTarget
(
c92895501
.
dmgtg
)
e3
:
SetOperation
(
c92895501
.
dmgop
)
c
:
RegisterEffect
(
e3
)
end
function
c92895501
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
function
c92895501
.
spfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x195
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
and
not
c
:
IsRace
(
RACE_MACHINE
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c92895501
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c92895501
.
spfilter
(
chkc
,
tp
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c92895501
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
92895501
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
92895501
,
RESET_CHAIN
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c92895501
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c92895501
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c92895501
.
drcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
not
c
:
IsPublic
()
end
function
c92895501
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c92895501
.
drcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c92895501
.
drcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c92895501
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
GetFlagEffect
(
tp
,
92895501
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
92895501
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c92895501
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
function
c92895501
.
dmgcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c92895501
.
dmgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c92895501
.
dmgcfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c92895501
.
dmgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
92895501
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
92895501
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
1500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1500
)
end
function
c92895501
.
dmgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
--VS ヘヴィ・ボーガー
function
c92895501
.
initial_effect
(
c
)
--return and spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
92895501
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
92895501
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetCondition
(
c92895501
.
spcon
)
e1
:
SetTarget
(
c92895501
.
sptg
)
e1
:
SetOperation
(
c92895501
.
spop
)
c
:
RegisterEffect
(
e1
)
--show dark for draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
92895501
,
1
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
92895502
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCost
(
c92895501
.
drcost
)
e2
:
SetTarget
(
c92895501
.
drtg
)
e2
:
SetOperation
(
c92895501
.
drop
)
c
:
RegisterEffect
(
e2
)
--show earth and fire for damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
92895501
,
2
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
92895502
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetCost
(
c92895501
.
dmgcost
)
e3
:
SetTarget
(
c92895501
.
dmgtg
)
e3
:
SetOperation
(
c92895501
.
dmgop
)
c
:
RegisterEffect
(
e3
)
end
function
c92895501
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
function
c92895501
.
spfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x195
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
and
not
c
:
IsRace
(
RACE_MACHINE
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c92895501
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c92895501
.
spfilter
(
chkc
,
tp
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c92895501
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
92895501
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
92895501
,
RESET_CHAIN
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c92895501
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c92895501
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c92895501
.
drcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
not
c
:
IsPublic
()
end
function
c92895501
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c92895501
.
drcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c92895501
.
drcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
RaiseEvent
(
g
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c92895501
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
GetFlagEffect
(
tp
,
92895501
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
92895501
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c92895501
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
function
c92895501
.
dmgcfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
+
ATTRIBUTE_FIRE
)
and
not
c
:
IsPublic
()
end
function
c92895501
.
dmgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c92895501
.
dmgcfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
aux
.
gfcheck
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_FIRE
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
RaiseEvent
(
sg
,
EVENT_CUSTOM
+
9091064
,
e
,
REASON_COST
,
tp
,
tp
,
0
)
Duel
.
ShuffleHand
(
tp
)
end
function
c92895501
.
dmgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
92895501
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
92895501
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
1500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1500
)
end
function
c92895501
.
dmgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
c9336190.lua
View file @
db0c5617
...
...
@@ -51,7 +51,8 @@ function c9336190.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
and
Duel
.
IsExistingTarget
(
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9336190
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
g
:
AddCard
(
e
:
GetHandler
())
...
...
@@ -61,6 +62,7 @@ function c9336190.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
9336190
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
tc
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
TYPE_NORMAL
,
0
,
0
,
tc
:
GetLevel
(),
0
,
0
)
...
...
c95243515.lua
View file @
db0c5617
...
...
@@ -89,4 +89,4 @@ function c95243515.disop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
end
end
end
\ No newline at end of file
end
c97417863.lua
View file @
db0c5617
...
...
@@ -135,4 +135,4 @@ function c97417863.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
end
end
\ No newline at end of file
end
c98905.lua
View file @
db0c5617
...
...
@@ -30,15 +30,15 @@ function c98905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c98905
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c98905
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
())
if
g
:
GetCount
()
>
0
then
g
:
AddCard
(
tc
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
g
:
GetFirst
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
Duel
.
SpecialSummonComplete
()
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