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
4
Merge Requests
4
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
de45171c
Commit
de45171c
authored
Dec 03, 2023
by
Uytrewq
Committed by
GitHub
Dec 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix&update trap monster (#2074)
* fix&update * fix&update
parent
1b84d403
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
169 additions
and
201 deletions
+169
-201
c10632284.lua
c10632284.lua
+4
-4
c13955608.lua
c13955608.lua
+3
-3
c20447641.lua
c20447641.lua
+14
-22
c20590515.lua
c20590515.lua
+4
-4
c20960340.lua
c20960340.lua
+13
-12
c21843307.lua
c21843307.lua
+14
-13
c23626223.lua
c23626223.lua
+3
-3
c26905245.lua
c26905245.lua
+4
-4
c27062594.lua
c27062594.lua
+2
-2
c28649820.lua
c28649820.lua
+4
-4
c3129635.lua
c3129635.lua
+4
-4
c33055499.lua
c33055499.lua
+3
-3
c35100834.lua
c35100834.lua
+3
-3
c36247316.lua
c36247316.lua
+5
-13
c42237854.lua
c42237854.lua
+4
-4
c42620460.lua
c42620460.lua
+3
-3
c43959432.lua
c43959432.lua
+4
-4
c44822037.lua
c44822037.lua
+3
-3
c46984349.lua
c46984349.lua
+2
-3
c4904633.lua
c4904633.lua
+3
-3
c49514333.lua
c49514333.lua
+4
-4
c50277973.lua
c50277973.lua
+3
-3
c51606429.lua
c51606429.lua
+3
-12
c54297661.lua
c54297661.lua
+3
-3
c55838342.lua
c55838342.lua
+4
-4
c60433216.lua
c60433216.lua
+3
-3
c62645025.lua
c62645025.lua
+2
-2
c67007102.lua
c67007102.lua
+4
-4
c70406920.lua
c70406920.lua
+4
-4
c74577599.lua
c74577599.lua
+0
-1
c79852326.lua
c79852326.lua
+4
-4
c8522996.lua
c8522996.lua
+3
-3
c85888377.lua
c85888377.lua
+3
-2
c86885905.lua
c86885905.lua
+3
-3
c87772572.lua
c87772572.lua
+3
-3
c88346805.lua
c88346805.lua
+3
-2
c90440725.lua
c90440725.lua
+4
-4
c92092092.lua
c92092092.lua
+3
-3
c92099232.lua
c92099232.lua
+4
-4
c93191801.lua
c93191801.lua
+4
-4
c97232518.lua
c97232518.lua
+3
-3
c98827725.lua
c98827725.lua
+3
-12
No files found.
c10632284.lua
View file @
de45171c
...
@@ -25,14 +25,14 @@ function s.initial_effect(c)
...
@@ -25,14 +25,14 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
2
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
2
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
2
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
2
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c13955608.lua
View file @
de45171c
...
@@ -19,14 +19,14 @@ function c13955608.initial_effect(c)
...
@@ -19,14 +19,14 @@ function c13955608.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c13955608
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13955608
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13955608
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13955608
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c13955608
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c13955608
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13955608
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13955608
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c20447641.lua
View file @
de45171c
...
@@ -6,7 +6,6 @@ function c20447641.initial_effect(c)
...
@@ -6,7 +6,6 @@ function c20447641.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCost
(
c20447641
.
cost
)
e1
:
SetTarget
(
c20447641
.
target
)
e1
:
SetTarget
(
c20447641
.
target
)
e1
:
SetOperation
(
c20447641
.
activate
)
e1
:
SetOperation
(
c20447641
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -26,34 +25,27 @@ function c20447641.initial_effect(c)
...
@@ -26,34 +25,27 @@ function c20447641.initial_effect(c)
e4
:
SetCode
(
EFFECT_LIMIT_SET_PROC
)
e4
:
SetCode
(
EFFECT_LIMIT_SET_PROC
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c20447641
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c20447641
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20447641
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
e
:
IsCostChecked
()
if
e
:
GetLabel
()
==
0
then
return
false
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
e
:
SetLabel
(
0
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20447641
,
0xaa
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20447641
,
0xaa
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
e
:
SetLabel
(
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c20447641
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20447641
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20447641
,
0xaa
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20447641
,
0xaa
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
c
:
AddMonsterAttribute
(
TYPE_EFFECT
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
then
c
:
RegisterFlagEffect
(
20447641
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
c
:
RegisterFlagEffect
(
20447641
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
c20447641
.
indtg
)
e2
:
SetTarget
(
c20447641
.
indtg
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
end
end
...
...
c20590515.lua
View file @
de45171c
...
@@ -26,8 +26,9 @@ function c20590515.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c20590515.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c20590515
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20590515
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20590515
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
500
,
1800
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20590515
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
500
,
1800
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c20590515
.
filter
(
c
)
function
c20590515
.
filter
(
c
)
...
@@ -35,8 +36,7 @@ function c20590515.filter(c)
...
@@ -35,8 +36,7 @@ function c20590515.filter(c)
end
end
function
c20590515
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20590515
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20590515
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
500
,
1800
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20590515
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
500
,
1800
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
c20590515
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c20590515
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
c20960340.lua
View file @
de45171c
...
@@ -26,25 +26,26 @@ function c20960340.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,25 +26,26 @@ function c20960340.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c20960340
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20960340
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
atk
=
Duel
.
GetLP
(
tp
)
local
atk
=
Duel
.
GetLP
(
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_ATTACK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_ATTACK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c20960340
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20960340
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
atk
=
Duel
.
GetLP
(
tp
)
local
atk
=
Duel
.
GetLP
(
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_ATTACK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_ATTACK
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
Duel
.
SpecialSummonStep
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
if
Duel
.
SpecialSummonStep
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
atk
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
SpecialSummonComplete
()
end
if
Duel
.
SpecialSummonComplete
()
==
0
then
return
end
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
if
at
and
at
:
IsAttackable
()
and
at
:
IsFaceup
()
and
not
at
:
IsImmuneToEffect
(
e
)
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
then
if
at
and
at
:
IsAttackable
()
and
at
:
IsFaceup
()
and
not
at
:
IsImmuneToEffect
(
e
)
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c21843307.lua
View file @
de45171c
...
@@ -16,8 +16,9 @@ function c21843307.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,8 +16,9 @@ function c21843307.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c21843307
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21843307
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
ec
:
CreateEffectRelation
(
e
)
ec
:
CreateEffectRelation
(
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -25,17 +26,17 @@ function c21843307.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,17 +26,17 @@ function c21843307.activate(e,tp,eg,ep,ev,re,r,rp)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
if
not
ec
:
IsRelateToEffect
(
e
)
then
return
end
if
not
ec
:
IsRelateToEffect
(
e
)
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
0
,
0
,
ec
:
GetLevel
(),
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
0
,
0
,
ec
:
GetLevel
(),
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
then
--change code
--change code
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
ec
:
GetCode
())
e1
:
SetValue
(
ec
:
GetCode
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
,
true
)
c
:
RegisterEffect
(
e1
,
true
)
end
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
c23626223.lua
View file @
de45171c
...
@@ -31,14 +31,14 @@ function c23626223.initial_effect(c)
...
@@ -31,14 +31,14 @@ function c23626223.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c23626223
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23626223
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23626223
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2500
,
7
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23626223
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2500
,
7
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c23626223
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23626223
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23626223
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2500
,
7
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23626223
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2500
,
7
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c26905245.lua
View file @
de45171c
...
@@ -17,14 +17,14 @@ function c26905245.initial_effect(c)
...
@@ -17,14 +17,14 @@ function c26905245.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c26905245
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26905245
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
26905245
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
3000
,
10
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
26905245
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
3000
,
10
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c26905245
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c26905245
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
26905245
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
3000
,
10
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
26905245
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
3000
,
10
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c27062594.lua
View file @
de45171c
...
@@ -27,14 +27,14 @@ function c27062594.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,14 +27,14 @@ function c27062594.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
c27062594
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27062594
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27062594
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27062594
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c27062594
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27062594
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
NegateAttack
()
then
return
end
if
not
Duel
.
NegateAttack
()
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27062594
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27062594
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
then
return
end
...
...
c28649820.lua
View file @
de45171c
...
@@ -15,14 +15,14 @@ function c28649820.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,14 +15,14 @@ function c28649820.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
end
function
c28649820
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28649820
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c28649820
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28649820
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
c3129635.lua
View file @
de45171c
...
@@ -22,14 +22,14 @@ function c3129635.initial_effect(c)
...
@@ -22,14 +22,14 @@ function c3129635.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c3129635
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3129635
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
3129635
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_DARK
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
3129635
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c3129635
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3129635
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
3129635
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
3129635
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c33055499.lua
View file @
de45171c
...
@@ -28,7 +28,8 @@ function c33055499.initial_effect(c)
...
@@ -28,7 +28,8 @@ function c33055499.initial_effect(c)
end
end
function
c33055499
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33055499
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
seq
=
e
:
GetHandler
():
GetSequence
()
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_MZONE
,
seq
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
CheckLocation
(
tp
,
LOCATION_MZONE
,
seq
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33055499
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2100
,
100
,
5
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33055499
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2100
,
100
,
5
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -39,8 +40,7 @@ function c33055499.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,8 +40,7 @@ function c33055499.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
seq
=
c
:
GetSequence
()
local
seq
=
c
:
GetSequence
()
local
zone
=
1
<<
seq
local
zone
=
1
<<
seq
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_MZONE
,
seq
)
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33055499
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2100
,
100
,
5
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33055499
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2100
,
100
,
5
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
,
zone
)
~=
0
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
,
zone
)
~=
0
then
local
g
=
c
:
GetColumnGroup
():
Filter
(
c33055499
.
filter
,
nil
,
tp
)
local
g
=
c
:
GetColumnGroup
():
Filter
(
c33055499
.
filter
,
nil
,
tp
)
...
...
c35100834.lua
View file @
de45171c
...
@@ -19,7 +19,8 @@ function c35100834.initial_effect(c)
...
@@ -19,7 +19,8 @@ function c35100834.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c35100834
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c35100834
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
35100834
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
35100834
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -28,8 +29,7 @@ function c35100834.eqfilter(c,tp)
...
@@ -28,8 +29,7 @@ function c35100834.eqfilter(c,tp)
end
end
function
c35100834
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35100834
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
35100834
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
35100834
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c35100834
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c35100834
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
tp
)
...
...
c36247316.lua
View file @
de45171c
...
@@ -8,27 +8,19 @@ function c36247316.initial_effect(c)
...
@@ -8,27 +8,19 @@ function c36247316.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetCost
(
c36247316
.
cost
)
e1
:
SetTarget
(
c36247316
.
target
)
e1
:
SetTarget
(
c36247316
.
target
)
e1
:
SetOperation
(
c36247316
.
activate
)
e1
:
SetOperation
(
c36247316
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c36247316
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c36247316
.
filter
(
c
)
function
c36247316
.
filter
(
c
)
return
c
:
GetLevel
()
>
0
and
c
:
IsFaceup
()
return
c
:
GetLevel
()
>
0
and
c
:
IsFaceup
()
end
end
function
c36247316
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c36247316
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c36247316
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c36247316
.
filter
(
chkc
)
end
if
chk
==
0
then
if
chk
==
0
then
return
e
:
IsCostChecked
()
if
e
:
GetLabel
()
==
0
then
return
false
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
e
:
SetLabel
(
0
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
36247316
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
600
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c36247316
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
36247316
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
600
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
and
Duel
.
IsExistingTarget
(
c36247316
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
e
:
SetLabel
(
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c36247316
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c36247316
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
@@ -57,7 +49,7 @@ function c36247316.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +49,7 @@ function c36247316.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
36247316
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
600
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
36247316
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
600
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
...
...
c42237854.lua
View file @
de45171c
...
@@ -44,7 +44,8 @@ function c42237854.filter(c)
...
@@ -44,7 +44,8 @@ function c42237854.filter(c)
end
end
function
c42237854
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c42237854
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c42237854
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c42237854
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42237854
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
IsExistingTarget
(
c42237854
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42237854
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42237854
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
...
@@ -59,10 +60,9 @@ function c42237854.tgfilter(c,e)
...
@@ -59,10 +60,9 @@ function c42237854.tgfilter(c,e)
end
end
function
c42237854
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42237854
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42237854
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42237854
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
==
0
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c42237854
.
tgfilter
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c42237854
.
tgfilter
,
nil
,
e
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
g
:
GetCount
()
<=
0
or
ft
<=
0
then
return
end
if
g
:
GetCount
()
<=
0
or
ft
<=
0
then
return
end
...
...
c42620460.lua
View file @
de45171c
...
@@ -28,7 +28,8 @@ function s.initial_effect(c)
...
@@ -28,7 +28,8 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x126
,
TYPES_NORMAL_TRAP_MONSTER
,
1900
,
2500
,
4
,
RACE_PSYCHO
,
ATTRIBUTE_DARK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x126
,
TYPES_NORMAL_TRAP_MONSTER
,
1900
,
2500
,
4
,
RACE_PSYCHO
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -36,8 +37,7 @@ function s.filter(c,e,tp)
...
@@ -36,8 +37,7 @@ function s.filter(c,e,tp)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsSetCard
(
0x126
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsSetCard
(
0x126
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x126
,
TYPES_NORMAL_TRAP_MONSTER
,
1900
,
2500
,
4
,
RACE_PSYCHO
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x126
,
TYPES_NORMAL_TRAP_MONSTER
,
1900
,
2500
,
4
,
RACE_PSYCHO
,
ATTRIBUTE_DARK
)
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
==
0
then
return
end
...
...
c43959432.lua
View file @
de45171c
...
@@ -35,7 +35,8 @@ function c43959432.filter(c)
...
@@ -35,7 +35,8 @@ function c43959432.filter(c)
end
end
function
c43959432
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43959432
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c43959432
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c43959432
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c43959432
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c43959432
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
43959432
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
43959432
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
...
@@ -45,10 +46,9 @@ function c43959432.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,10 +46,9 @@ function c43959432.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c43959432
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43959432
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
43959432
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
43959432
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
if
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
==
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c44822037.lua
View file @
de45171c
...
@@ -32,14 +32,14 @@ function c44822037.initial_effect(c)
...
@@ -32,14 +32,14 @@ function c44822037.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c44822037
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44822037
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
44822037
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
44822037
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c44822037
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44822037
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
44822037
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
44822037
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
1800
,
4
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c46984349.lua
View file @
de45171c
...
@@ -24,14 +24,13 @@ function c46984349.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,14 +24,13 @@ function c46984349.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
g
:
GetFirst
():
GetOriginalLevel
())
e
:
SetLabel
(
g
:
GetFirst
():
GetOriginalLevel
())
end
end
function
c46984349
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46984349
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
IsCostChecked
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c46984349
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46984349
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
lv
=
e
:
GetLabel
()
local
lv
=
e
:
GetLabel
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46984349
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
lv
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46984349
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
lv
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
0
,
0
,
lv
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
0
,
0
,
lv
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
c4904633.lua
View file @
de45171c
...
@@ -30,14 +30,14 @@ function c4904633.initial_effect(c)
...
@@ -30,14 +30,14 @@ function c4904633.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c4904633
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4904633
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
4904633
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1450
,
1950
,
9
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
4904633
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1450
,
1950
,
9
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c4904633
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4904633
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
4904633
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1450
,
1950
,
9
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
4904633
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1450
,
1950
,
9
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c49514333.lua
View file @
de45171c
...
@@ -23,14 +23,14 @@ function c49514333.initial_effect(c)
...
@@ -23,14 +23,14 @@ function c49514333.initial_effect(c)
e2
:
SetLabelObject
(
g
)
e2
:
SetLabelObject
(
g
)
end
end
function
c49514333
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49514333
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
49514333
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1800
,
4
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
49514333
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1800
,
4
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c49514333
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49514333
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
49514333
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1800
,
4
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
49514333
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1800
,
4
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c50277973.lua
View file @
de45171c
...
@@ -26,7 +26,8 @@ function c50277973.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,8 @@ function c50277973.target(e,tp,eg,ep,ev,re,r,rp,chk)
crac
=
crac
*
2
crac
=
crac
*
2
end
end
e
:
SetLabel
(
rac
)
e
:
SetLabel
(
rac
)
return
rac
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
e
:
IsCostChecked
()
and
rac
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RACE
)
local
crac
=
Duel
.
AnnounceRace
(
tp
,
1
,
e
:
GetLabel
())
local
crac
=
Duel
.
AnnounceRace
(
tp
,
1
,
e
:
GetLabel
())
...
@@ -48,8 +49,7 @@ function c50277973.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,8 +49,7 @@ function c50277973.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rac
=
e
:
GetLabel
()
local
rac
=
e
:
GetLabel
()
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50277973
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1800
,
1000
,
4
,
rac
,
att
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50277973
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1800
,
1000
,
4
,
rac
,
att
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
att
,
rac
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
att
,
rac
,
0
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
c51606429.lua
View file @
de45171c
...
@@ -5,7 +5,6 @@ function c51606429.initial_effect(c)
...
@@ -5,7 +5,6 @@ function c51606429.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
c51606429
.
cost
)
e1
:
SetTarget
(
c51606429
.
target
)
e1
:
SetTarget
(
c51606429
.
target
)
e1
:
SetOperation
(
c51606429
.
activate
)
e1
:
SetOperation
(
c51606429
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -23,21 +22,13 @@ function c51606429.initial_effect(c)
...
@@ -23,21 +22,13 @@ function c51606429.initial_effect(c)
e2
:
SetOperation
(
c51606429
.
negop
)
e2
:
SetOperation
(
c51606429
.
negop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c51606429
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c51606429
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c51606429
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
e
:
IsCostChecked
()
if
e
:
GetLabel
()
==
0
then
return
false
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
e
:
SetLabel
(
0
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51606429
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
3
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51606429
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
3
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
end
e
:
SetLabel
(
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c51606429
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51606429
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51606429
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
3
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51606429
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
0
,
3
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
then
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
...
...
c54297661.lua
View file @
de45171c
...
@@ -51,7 +51,8 @@ function c54297661.filter(c,tp)
...
@@ -51,7 +51,8 @@ function c54297661.filter(c,tp)
end
end
function
c54297661
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c54297661
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c54297661
.
filter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c54297661
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingTarget
(
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
Duel
.
SelectTarget
(
tp
,
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
@@ -63,8 +64,7 @@ function c54297661.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,8 +64,7 @@ function c54297661.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
(
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
if
not
(
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
local
atk
=
tc
:
GetAttack
()
local
atk
=
tc
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
def
=
tc
:
GetDefense
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummonStep
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
if
Duel
.
SpecialSummonStep
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c55838342.lua
View file @
de45171c
...
@@ -22,14 +22,14 @@ function c55838342.initial_effect(c)
...
@@ -22,14 +22,14 @@ function c55838342.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c55838342
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55838342
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
55838342
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
300
,
2100
,
2
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
55838342
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
300
,
2100
,
2
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c55838342
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55838342
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
55838342
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
300
,
2100
,
2
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
55838342
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
300
,
2100
,
2
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c60433216.lua
View file @
de45171c
...
@@ -16,7 +16,8 @@ function c60433216.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,8 @@ function c60433216.condition(e,tp,eg,ep,ev,re,r,rp)
return
tc
and
tc
:
IsSetCard
(
0x1045
)
and
tc
:
IsRelateToBattle
()
return
tc
and
tc
:
IsSetCard
(
0x1045
)
and
tc
:
IsRelateToBattle
()
end
end
function
c60433216
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60433216
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -31,8 +32,7 @@ function c60433216.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,8 +32,7 @@ function c60433216.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
c62645025.lua
View file @
de45171c
...
@@ -26,14 +26,14 @@ function c62645025.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,14 +26,14 @@ function c62645025.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
end
end
function
c62645025
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62645025
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
62645025
,
0x10db
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
62645025
,
0x10db
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c62645025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62645025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
NegateAttack
()
then
return
end
if
not
Duel
.
NegateAttack
()
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
62645025
,
0x10db
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
62645025
,
0x10db
,
TYPES_EFFECT_TRAP_MONSTER
,
0
,
0
,
2
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
,
POS_FACEUP_ATTACK
)
then
return
end
...
...
c67007102.lua
View file @
de45171c
...
@@ -29,8 +29,9 @@ function c67007102.atkfilter(c)
...
@@ -29,8 +29,9 @@ function c67007102.atkfilter(c)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
end
end
function
c67007102
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c67007102
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
67007102
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
800
,
2500
,
8
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
67007102
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
800
,
2500
,
8
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c67007102
.
filter
(
c
)
function
c67007102
.
filter
(
c
)
...
@@ -38,8 +39,7 @@ function c67007102.filter(c)
...
@@ -38,8 +39,7 @@ function c67007102.filter(c)
end
end
function
c67007102
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67007102
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
67007102
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
800
,
2500
,
8
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
67007102
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
800
,
2500
,
8
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
c67007102
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c67007102
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
c70406920.lua
View file @
de45171c
...
@@ -45,14 +45,14 @@ function c70406920.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
...
@@ -45,14 +45,14 @@ function c70406920.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return
e
:
GetLabelObject
()
~=
se
return
e
:
GetLabelObject
()
~=
se
end
end
function
c70406920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c70406920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70406920
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70406920
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c70406920
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70406920
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70406920
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70406920
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c74577599.lua
View file @
de45171c
...
@@ -54,7 +54,6 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,6 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x108a
,
TYPES_NORMAL_TRAP_MONSTER
,
400
,
2400
,
4
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
tp
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0x108a
,
TYPES_NORMAL_TRAP_MONSTER
,
400
,
2400
,
4
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
tp
)
then
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
...
...
c79852326.lua
View file @
de45171c
...
@@ -21,14 +21,14 @@ function c79852326.initial_effect(c)
...
@@ -21,14 +21,14 @@ function c79852326.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c79852326
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79852326
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
79852326
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
500
,
4
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
79852326
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
500
,
4
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c79852326
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79852326
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
79852326
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
500
,
4
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
79852326
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1800
,
500
,
4
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c8522996.lua
View file @
de45171c
...
@@ -31,14 +31,14 @@ function c8522996.initial_effect(c)
...
@@ -31,14 +31,14 @@ function c8522996.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c8522996
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8522996
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8522996
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
2400
,
6
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8522996
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
2400
,
6
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c8522996
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8522996
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8522996
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
2400
,
6
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8522996
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1000
,
2400
,
6
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c85888377.lua
View file @
de45171c
...
@@ -15,7 +15,8 @@ function c85888377.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,7 +15,8 @@ function c85888377.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
end
function
c85888377
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85888377
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
85888377
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2000
,
2200
,
6
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
85888377
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2000
,
2200
,
6
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
@@ -24,7 +25,7 @@ function c85888377.filter(c)
...
@@ -24,7 +25,7 @@ function c85888377.filter(c)
end
end
function
c85888377
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85888377
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
85888377
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2000
,
2200
,
6
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
85888377
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
2000
,
2200
,
6
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
...
...
c86885905.lua
View file @
de45171c
...
@@ -31,14 +31,14 @@ function c86885905.initial_effect(c)
...
@@ -31,14 +31,14 @@ function c86885905.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c86885905
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86885905
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
86885905
,
0x103
,
TYPES_EFFECT_TRAP_MONSTER
,
1400
,
1800
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
86885905
,
0x103
,
TYPES_EFFECT_TRAP_MONSTER
,
1400
,
1800
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c86885905
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86885905
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
86885905
,
0x103
,
TYPES_EFFECT_TRAP_MONSTER
,
1400
,
1800
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
86885905
,
0x103
,
TYPES_EFFECT_TRAP_MONSTER
,
1400
,
1800
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c87772572.lua
View file @
de45171c
...
@@ -26,7 +26,8 @@ function c87772572.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,8 @@ function c87772572.target(e,tp,eg,ep,ev,re,r,rp,chk)
crac
=
crac
*
2
crac
=
crac
*
2
end
end
e
:
SetLabel
(
rac
)
e
:
SetLabel
(
rac
)
return
rac
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
e
:
IsCostChecked
()
and
rac
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RACE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RACE
)
local
crac
=
Duel
.
AnnounceRace
(
tp
,
1
,
e
:
GetLabel
())
local
crac
=
Duel
.
AnnounceRace
(
tp
,
1
,
e
:
GetLabel
())
...
@@ -48,8 +49,7 @@ function c87772572.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,8 +49,7 @@ function c87772572.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rac
=
e
:
GetLabel
()
local
rac
=
e
:
GetLabel
()
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
87772572
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
2200
,
4
,
rac
,
att
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
87772572
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
2200
,
4
,
rac
,
att
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
att
,
rac
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
att
,
rac
,
0
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
c88346805.lua
View file @
de45171c
...
@@ -30,13 +30,14 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,13 +30,14 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCustomActivityCount
(
id
,
tp
,
ACTIVITY_CHAIN
)
+
Duel
.
GetCustomActivityCount
(
id
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
9
return
Duel
.
GetCustomActivityCount
(
id
,
tp
,
ACTIVITY_CHAIN
)
+
Duel
.
GetCustomActivityCount
(
id
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
9
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
3000
,
3000
,
10
,
RACE_CYBERSE
,
ATTRIBUTE_DARK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
3000
,
3000
,
10
,
RACE_CYBERSE
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
(
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
not
(
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
3000
,
3000
,
10
,
RACE_CYBERSE
,
ATTRIBUTE_DARK
))
then
return
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
3000
,
3000
,
10
,
RACE_CYBERSE
,
ATTRIBUTE_DARK
))
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummonStep
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
then
if
Duel
.
SpecialSummonStep
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
then
...
...
c90440725.lua
View file @
de45171c
...
@@ -35,14 +35,14 @@ function c90440725.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,14 +35,14 @@ function c90440725.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
(
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
)
end
end
function
c90440725
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90440725
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
90440725
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
-
2
,
-
2
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
90440725
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
-
2
,
-
2
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c90440725
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90440725
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
90440725
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
-
2
,
-
2
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
90440725
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
-
2
,
-
2
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c92092092.lua
View file @
de45171c
...
@@ -25,14 +25,14 @@ function c92092092.initial_effect(c)
...
@@ -25,14 +25,14 @@ function c92092092.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c92092092
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92092092
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92092092
,
0
,
TYPES_EFFECT_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
1800
,
1
,
RACE_MACHINE
,
ATTRIBUTE_FIRE
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92092092
,
0
,
TYPES_EFFECT_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
1800
,
1
,
RACE_MACHINE
,
ATTRIBUTE_FIRE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c92092092
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c92092092
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92092092
,
0
,
TYPES_EFFECT_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
1800
,
1
,
RACE_MACHINE
,
ATTRIBUTE_FIRE
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92092092
,
0
,
TYPES_EFFECT_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
1800
,
1
,
RACE_MACHINE
,
ATTRIBUTE_FIRE
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TUNER
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TUNER
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c92099232.lua
View file @
de45171c
...
@@ -11,14 +11,14 @@ function c92099232.initial_effect(c)
...
@@ -11,14 +11,14 @@ function c92099232.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c92099232
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92099232
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c92099232
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c92099232
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
TYPES_NORMAL_TRAP_MONSTER
+
TYPE_TUNER
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
c93191801.lua
View file @
de45171c
...
@@ -26,8 +26,9 @@ function c93191801.initial_effect(c)
...
@@ -26,8 +26,9 @@ function c93191801.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c93191801
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93191801
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
e
:
IsCostChecked
()
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93191801
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1800
,
1500
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93191801
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1800
,
1500
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
PLAYER_ALL
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
PLAYER_ALL
,
LOCATION_GRAVE
)
end
end
...
@@ -36,8 +37,7 @@ function c93191801.filter(c)
...
@@ -36,8 +37,7 @@ function c93191801.filter(c)
end
end
function
c93191801
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93191801
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93191801
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1800
,
1500
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93191801
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1800
,
1500
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
c93191801
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c93191801
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
c97232518.lua
View file @
de45171c
...
@@ -19,14 +19,14 @@ function c97232518.initial_effect(c)
...
@@ -19,14 +19,14 @@ function c97232518.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c97232518
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97232518
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
97232518
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1900
,
0
,
5
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
97232518
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1900
,
0
,
5
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c97232518
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97232518
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
97232518
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1900
,
0
,
5
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
97232518
,
0
,
TYPES_EFFECT_TRAP_MONSTER
,
1900
,
0
,
5
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
SUMMON_VALUE_SELF
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
...
...
c98827725.lua
View file @
de45171c
...
@@ -6,7 +6,6 @@ function c98827725.initial_effect(c)
...
@@ -6,7 +6,6 @@ function c98827725.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
98827725
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
98827725
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c98827725
.
cost
)
e1
:
SetTarget
(
c98827725
.
target
)
e1
:
SetTarget
(
c98827725
.
target
)
e1
:
SetOperation
(
c98827725
.
activate
)
e1
:
SetOperation
(
c98827725
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -18,21 +17,13 @@ function c98827725.initial_effect(c)
...
@@ -18,21 +17,13 @@ function c98827725.initial_effect(c)
e2
:
SetCondition
(
c98827725
.
actcon
)
e2
:
SetCondition
(
c98827725
.
actcon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c98827725
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
return
true
end
function
c98827725
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98827725
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
e
:
IsCostChecked
()
if
e
:
GetLabel
()
==
0
then
return
false
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
e
:
SetLabel
(
0
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98827725
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
300
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
end
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98827725
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
300
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
end
e
:
SetLabel
(
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c98827725
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98827725
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98827725
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
300
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98827725
,
0x10db
,
TYPES_NORMAL_TRAP_MONSTER
,
0
,
300
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
...
...
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