Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
Commits
d1d99049
Commit
d1d99049
authored
Jun 27, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update spell/trap monster
parent
503b684e
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
74 additions
and
164 deletions
+74
-164
c1154611.lua
c1154611.lua
+2
-8
c13955608.lua
c13955608.lua
+2
-2
c16625614.lua
c16625614.lua
+2
-8
c20960340.lua
c20960340.lua
+2
-2
c21843307.lua
c21843307.lua
+2
-2
c23626223.lua
c23626223.lua
+2
-2
c2376209.lua
c2376209.lua
+2
-8
c24212820.lua
c24212820.lua
+2
-8
c24903843.lua
c24903843.lua
+2
-8
c26905245.lua
c26905245.lua
+2
-2
c27062594.lua
c27062594.lua
+2
-2
c28649820.lua
c28649820.lua
+2
-2
c3129635.lua
c3129635.lua
+2
-2
c33622465.lua
c33622465.lua
+2
-8
c35035481.lua
c35035481.lua
+2
-8
c38761908.lua
c38761908.lua
+2
-8
c42237854.lua
c42237854.lua
+2
-2
c43959432.lua
c43959432.lua
+2
-2
c4904633.lua
c4904633.lua
+2
-2
c49514333.lua
c49514333.lua
+2
-2
c50277973.lua
c50277973.lua
+2
-2
c51606429.lua
c51606429.lua
+2
-8
c54241725.lua
c54241725.lua
+2
-8
c54297661.lua
c54297661.lua
+2
-2
c60433216.lua
c60433216.lua
+2
-2
c61420130.lua
c61420130.lua
+2
-8
c64765016.lua
c64765016.lua
+2
-8
c70406920.lua
c70406920.lua
+2
-2
c77462146.lua
c77462146.lua
+2
-8
c79852326.lua
c79852326.lua
+2
-2
c8522996.lua
c8522996.lua
+2
-2
c87772572.lua
c87772572.lua
+2
-2
c90440725.lua
c90440725.lua
+2
-2
c92099232.lua
c92099232.lua
+2
-2
c97232518.lua
c97232518.lua
+2
-2
c98414735.lua
c98414735.lua
+2
-8
c98827725.lua
c98827725.lua
+2
-8
No files found.
c1154611.lua
View file @
d1d99049
...
@@ -48,15 +48,9 @@ function c1154611.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,15 +48,9 @@ function c1154611.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
1154611
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
1154611
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c13955608.lua
View file @
d1d99049
...
@@ -19,9 +19,9 @@ function c13955608.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,9 +19,9 @@ function c13955608.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13955608
,
0
,
0x21
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
13955608
,
0
,
0x21
,
0
,
2000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--update attack
--update attack
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c16625614.lua
View file @
d1d99049
...
@@ -56,15 +56,9 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,15 +56,9 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
if
tc
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16625614
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16625614
,
0
))
then
tc
:
ResetEffect
(
EFFECT_CANNOT_SPECIAL_SUMMON
,
RESET_CODE
)
tc
:
ResetEffect
(
EFFECT_CANNOT_SPECIAL_SUMMON
,
RESET_CODE
)
tc
:
AddMonsterAttribute
(
ATTRIBUTE_DARK
,
RACE_FIEND
,
1
,
0
,
0
)
tc
:
AddMonsterAttribute
(
TYPE_NORMAL
,
ATTRIBUTE_DARK
,
RACE_FIEND
,
1
,
0
,
0
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e6
=
Effect
.
CreateEffect
(
tc
)
local
e6
=
Effect
.
CreateEffect
(
tc
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
...
c20960340.lua
View file @
d1d99049
...
@@ -26,9 +26,9 @@ function c20960340.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,9 +26,9 @@ function c20960340.activate(e,tp,eg,ep,ev,re,r,rp)
local
atk
=
Duel
.
GetLP
(
tp
)
local
atk
=
Duel
.
GetLP
(
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
0x21
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20960340
,
0
,
0x21
,
atk
,
0
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_TRAP
+
TYPE_EFFECT
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
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
)
...
...
c21843307.lua
View file @
d1d99049
...
@@ -28,9 +28,9 @@ function c21843307.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,9 +28,9 @@ function c21843307.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
0x11
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
0x11
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
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
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
c
:
AddMonsterAttributeComplete
(
)
--change code
--change code
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c23626223.lua
View file @
d1d99049
...
@@ -19,9 +19,9 @@ function c23626223.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,9 +19,9 @@ function c23626223.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23626223
,
0
,
0x21
,
0
,
2500
,
7
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23626223
,
0
,
0x21
,
0
,
2500
,
7
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--monster effects
--monster effects
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c2376209.lua
View file @
d1d99049
...
@@ -59,15 +59,9 @@ function c2376209.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,15 +59,9 @@ function c2376209.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
2376209
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2376209
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c24212820.lua
View file @
d1d99049
...
@@ -56,15 +56,9 @@ function c24212820.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,15 +56,9 @@ function c24212820.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
24212820
,
0x10db
,
0x21
,
4
,
300
,
600
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
24212820
,
0x10db
,
0x21
,
4
,
300
,
600
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
)
Duel
.
SpecialSummonStep
(
c
,
1
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
1
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_EFFECT
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
--redirect
--redirect
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c24903843.lua
View file @
d1d99049
...
@@ -47,15 +47,9 @@ function c24903843.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,15 +47,9 @@ function c24903843.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
24903843
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
24903843
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c26905245.lua
View file @
d1d99049
...
@@ -20,9 +20,9 @@ function c26905245.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,9 +20,9 @@ function c26905245.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
26905245
,
0
,
0x21
,
0
,
3000
,
10
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
26905245
,
0
,
0x21
,
0
,
3000
,
10
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--cannot attack
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c27062594.lua
View file @
d1d99049
...
@@ -25,9 +25,9 @@ function c27062594.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,9 +25,9 @@ function c27062594.activate(e,tp,eg,ep,ev,re,r,rp)
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
,
0x21
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27062594
,
0
,
0x21
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
27062594
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
27062594
,
0
))
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
c28649820.lua
View file @
d1d99049
...
@@ -24,8 +24,8 @@ function c28649820.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,8 +24,8 @@ function c28649820.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
0x11
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
0x11
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
c3129635.lua
View file @
d1d99049
...
@@ -20,9 +20,9 @@ function c3129635.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,9 +20,9 @@ function c3129635.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
3129635
,
0
,
0x21
,
1800
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
3129635
,
0
,
0x21
,
1800
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
3129635
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
3129635
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
c33622465.lua
View file @
d1d99049
...
@@ -54,15 +54,9 @@ function c33622465.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,15 +54,9 @@ function c33622465.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
33622465
,
0
,
0x11
,
3
,
1200
,
400
,
RACE_WARRIOR
,
ATTRIBUTE_EARTH
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
33622465
,
0
,
0x11
,
3
,
1200
,
400
,
RACE_WARRIOR
,
ATTRIBUTE_EARTH
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
--redirect
--redirect
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c35035481.lua
View file @
d1d99049
...
@@ -50,15 +50,9 @@ function c35035481.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,15 +50,9 @@ function c35035481.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
35035481
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
35035481
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c38761908.lua
View file @
d1d99049
...
@@ -56,15 +56,9 @@ function c38761908.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,15 +56,9 @@ function c38761908.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
38761908
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
38761908
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c42237854.lua
View file @
d1d99049
...
@@ -51,7 +51,7 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42237854
,
0
,
0x21
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42237854
,
0
,
0x21
,
0
,
0
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
--atk
--atk
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -62,7 +62,7 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,7 +62,7 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c42237854
.
atkval
)
e1
:
SetValue
(
c42237854
.
atkval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
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
)
...
...
c43959432.lua
View file @
d1d99049
...
@@ -29,9 +29,9 @@ function c43959432.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,9 +29,9 @@ function c43959432.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
43959432
,
0
,
0x21
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
43959432
,
0
,
0x21
,
1000
,
1000
,
4
,
RACE_ROCK
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--position
--position
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
...
...
c4904633.lua
View file @
d1d99049
...
@@ -31,9 +31,9 @@ function c4904633.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,9 +31,9 @@ function c4904633.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
4904633
,
0
,
0x21
,
1450
,
1950
,
9
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
4904633
,
0
,
0x21
,
1450
,
1950
,
9
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
4904633
)
e1
:
SetCode
(
4904633
)
...
...
c49514333.lua
View file @
d1d99049
...
@@ -23,9 +23,9 @@ function c49514333.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,9 +23,9 @@ function c49514333.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
49514333
,
0
,
0x21
,
1000
,
1800
,
4
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
49514333
,
0
,
0x21
,
1000
,
1800
,
4
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
c50277973.lua
View file @
d1d99049
...
@@ -51,8 +51,8 @@ function c50277973.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,8 +51,8 @@ function c50277973.activate(e,tp,eg,ep,ev,re,r,rp)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50277973
,
0
,
0x11
,
1800
,
1000
,
4
,
rac
,
att
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50277973
,
0
,
0x11
,
1800
,
1000
,
4
,
rac
,
att
)
then
return
end
c
:
AddMonsterAttribute
(
att
,
rac
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
att
,
rac
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
c51606429.lua
View file @
d1d99049
...
@@ -32,15 +32,9 @@ function c51606429.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,15 +32,9 @@ function c51606429.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
0x11
,
3
,
0
,
0
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51606429
,
0x10db
,
0x11
,
3
,
0
,
0
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
end
end
...
...
c54241725.lua
View file @
d1d99049
...
@@ -92,15 +92,9 @@ function c54241725.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,15 +92,9 @@ function c54241725.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
54241725
,
0
,
0x11
,
5
,
1000
,
2400
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54241725
,
0
,
0x11
,
5
,
1000
,
2400
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
end
end
c54297661.lua
View file @
d1d99049
...
@@ -37,9 +37,9 @@ function c54297661.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,9 +37,9 @@ function c54297661.activate(e,tp,eg,ep,ev,re,r,rp)
local
def
=
tc
:
GetDefense
()
local
def
=
tc
:
GetDefense
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
atk
,
def
,
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
if
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
then
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
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
)
...
...
c60433216.lua
View file @
d1d99049
...
@@ -34,8 +34,8 @@ function c60433216.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,8 +34,8 @@ function c60433216.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
0x1011
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60433216
,
0
,
0x1011
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_FIRE
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
+
TYPE_TUNER
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
c61420130.lua
View file @
d1d99049
...
@@ -62,15 +62,9 @@ function c61420130.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,15 +62,9 @@ function c61420130.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
61420130
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
61420130
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c64765016.lua
View file @
d1d99049
...
@@ -48,15 +48,9 @@ function c64765016.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,15 +48,9 @@ function c64765016.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
64765016
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
64765016
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c70406920.lua
View file @
d1d99049
...
@@ -43,9 +43,9 @@ function c70406920.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,9 +43,9 @@ function c70406920.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70406920
,
0
,
0x21
,
1000
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
70406920
,
0
,
0x21
,
1000
,
1000
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--atkup
--atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
70406920
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
70406920
,
0
))
...
...
c77462146.lua
View file @
d1d99049
...
@@ -58,15 +58,9 @@ function c77462146.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,15 +58,9 @@ function c77462146.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
77462146
,
0x10db
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
77462146
,
0x10db
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
--redirect
--redirect
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c79852326.lua
View file @
d1d99049
...
@@ -20,9 +20,9 @@ function c79852326.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,9 +20,9 @@ function c79852326.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
79852326
,
0
,
0x21
,
1800
,
500
,
4
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
79852326
,
0
,
0x21
,
1800
,
500
,
4
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--damage
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
79852326
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
79852326
,
0
))
...
...
c8522996.lua
View file @
d1d99049
...
@@ -40,9 +40,9 @@ function c8522996.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,9 +40,9 @@ function c8522996.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8522996
,
0
,
0x21
,
1000
,
2400
,
6
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8522996
,
0
,
0x21
,
1000
,
2400
,
6
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
1
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
1
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
function
c8522996
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8522996
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c87772572.lua
View file @
d1d99049
...
@@ -51,8 +51,8 @@ function c87772572.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,8 +51,8 @@ function c87772572.activate(e,tp,eg,ep,ev,re,r,rp)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
87772572
,
0
,
0x11
,
0
,
2200
,
4
,
rac
,
att
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
87772572
,
0
,
0x11
,
0
,
2200
,
4
,
rac
,
att
)
then
return
end
c
:
AddMonsterAttribute
(
att
,
rac
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
,
att
,
rac
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
c90440725.lua
View file @
d1d99049
...
@@ -25,9 +25,9 @@ function c90440725.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,9 +25,9 @@ function c90440725.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
90440725
,
0
,
0x21
,
-
2
,
-
2
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
90440725
,
0
,
0x21
,
-
2
,
-
2
,
4
,
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
--cannot attack
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
c92099232.lua
View file @
d1d99049
...
@@ -20,8 +20,8 @@ function c92099232.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,8 +20,8 @@ function c92099232.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
0x11
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
0x11
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
+
TYPE_TUNER
)
c
:
AddMonsterAttributeComplete
(
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
c97232518.lua
View file @
d1d99049
...
@@ -19,9 +19,9 @@ function c97232518.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,9 +19,9 @@ function c97232518.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
97232518
,
0
,
0x21
,
1900
,
0
,
5
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
97232518
,
0
,
0x21
,
1900
,
0
,
5
,
RACE_THUNDER
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
+
TYPE_TRAP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
c
:
AddMonsterAttributeComplete
(
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
c98414735.lua
View file @
d1d99049
...
@@ -51,15 +51,9 @@ function c98414735.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,15 +51,9 @@ function c98414735.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
98414735
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98414735
,
0xd4
,
0x11
,
1200
,
0
,
2
,
RACE_AQUA
,
ATTRIBUTE_WATER
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c98827725.lua
View file @
d1d99049
...
@@ -27,15 +27,9 @@ function c98827725.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,15 +27,9 @@ function c98827725.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
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
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98827725
,
0x10db
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
c
:
AddMonsterAttribute
(
TYPE_NORMAL
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENSE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
AddMonsterAttributeComplete
()
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment