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
3bd3081c
Commit
3bd3081c
authored
Apr 22, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trap monster
parent
69b1a5e5
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
90 additions
and
69 deletions
+90
-69
c13955608.lua
c13955608.lua
+6
-5
c21843307.lua
c21843307.lua
+5
-3
c23626223.lua
c23626223.lua
+7
-5
c26905245.lua
c26905245.lua
+5
-4
c27062594.lua
c27062594.lua
+5
-4
c28649820.lua
c28649820.lua
+4
-3
c3129635.lua
c3129635.lua
+5
-4
c4904633.lua
c4904633.lua
+5
-4
c49514333.lua
c49514333.lua
+5
-4
c50277973.lua
c50277973.lua
+4
-3
c60433216.lua
c60433216.lua
+4
-3
c70406920.lua
c70406920.lua
+5
-4
c79852326.lua
c79852326.lua
+5
-4
c8522996.lua
c8522996.lua
+5
-3
c87772572.lua
c87772572.lua
+4
-3
c90440725.lua
c90440725.lua
+6
-5
c92099232.lua
c92099232.lua
+4
-3
c97232518.lua
c97232518.lua
+5
-4
constant.lua
constant.lua
+1
-1
No files found.
c13955608.lua
View file @
3bd3081c
...
...
@@ -19,10 +19,10 @@ function c13955608.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_EARTH
,
RACE_MACHINE
,
4
,
0
,
200
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENCE
)
c
:
TrapMonster
Block
(
)
--
cannot
attack
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENCE
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
--
update
attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -31,7 +31,8 @@ function c13955608.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
3000
)
e1
:
SetCondition
(
c13955608
.
atkcon
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c13955608
.
atkcon
(
e
)
local
con
=
0
...
...
c21843307.lua
View file @
3bd3081c
...
...
@@ -28,14 +28,16 @@ function c21843307.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_NORMAL
,
ATTRIBUTE_LIGHT
,
RACE_WARRIOR
,
ec
:
GetLevel
(),
0
,
0
)
c
:
Add
MonsterAttribute
(
0
,
0
,
ec
:
GetLevel
(),
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
--change code
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
ec
:
GetCode
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
c
:
TrapMonsterBlock
()
end
c23626223.lua
View file @
3bd3081c
...
...
@@ -19,9 +19,10 @@ function c23626223.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
AddTrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_EARTH
,
RACE_ROCK
,
7
,
0
,
2500
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
--monster effects
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -30,7 +31,7 @@ function c23626223.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c23626223
.
tgcon
)
e1
:
SetValue
(
aux
.
tgoval
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
23626223
,
0
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
...
...
@@ -42,7 +43,8 @@ function c23626223.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTarget
(
c23626223
.
destg
)
e2
:
SetOperation
(
c23626223
.
desop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c23626223
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_TRAP
)
~=
0
and
c
:
IsType
(
TYPE_MONSTER
)
...
...
c26905245.lua
View file @
3bd3081c
...
...
@@ -20,13 +20,14 @@ function c26905245.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_WATER
,
RACE_AQUA
,
10
,
0
,
300
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENCE
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENCE
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
c27062594.lua
View file @
3bd3081c
...
...
@@ -25,9 +25,9 @@ function c27062594.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27062594
,
0
,
0x21
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_LIGHT
)
then
return
end
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_LIGHT
,
RACE_FIEND
,
1
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
27062594
,
0
))
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
@@ -40,7 +40,8 @@ function c27062594.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTarget
(
c27062594
.
damtg
)
e1
:
SetOperation
(
c27062594
.
damop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c27062594
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
...
...
c28649820.lua
View file @
3bd3081c
...
...
@@ -24,7 +24,8 @@ function c28649820.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
AddTrapMonsterAttribute
(
TYPE_NORMAL
,
ATTRIBUTE_EARTH
,
RACE_REPTILE
,
4
,
1600
,
1800
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
Duel
.
SpecialSummonComplete
()
end
c3129635.lua
View file @
3bd3081c
...
...
@@ -20,9 +20,9 @@ function c3129635.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_DARK
,
RACE_ROCK
,
4
,
1800
,
100
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
3129635
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -32,7 +32,8 @@ function c3129635.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTarget
(
c3129635
.
destg
)
e1
:
SetOperation
(
c3129635
.
desop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c3129635
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a
=
Duel
.
GetAttacker
()
...
...
c4904633.lua
View file @
3bd3081c
...
...
@@ -31,14 +31,15 @@ function c4904633.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_DARK
,
RACE_SPELLCASTER
,
9
,
1450
,
195
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
4904633
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c4904633
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
...
...
c49514333.lua
View file @
3bd3081c
...
...
@@ -23,9 +23,9 @@ function c49514333.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_LIGHT
,
RACE_ROCK
,
4
,
1000
,
180
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -34,7 +34,8 @@ function c49514333.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
c49514333
.
repval
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetLabelObject
(
e
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c49514333
.
repfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
...
...
c50277973.lua
View file @
3bd3081c
...
...
@@ -51,7 +51,8 @@ function c50277973.activate(e,tp,eg,ep,ev,re,r,rp)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
50277973
,
0
,
0x11
,
1800
,
1000
,
4
,
rac
,
att
)
then
return
end
c
:
AddTrapMonsterAttribute
(
TYPE_NORMAL
,
att
,
rac
,
4
,
1800
,
1000
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
att
,
rac
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
Duel
.
SpecialSummonComplete
()
end
c60433216.lua
View file @
3bd3081c
...
...
@@ -34,7 +34,8 @@ function c60433216.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
AddTrapMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
,
ATTRIBUTE_FIRE
,
RACE_FIEND
,
1
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
+
TYPE_TUNER
)
Duel
.
SpecialSummonComplete
()
end
c70406920.lua
View file @
3bd3081c
...
...
@@ -43,9 +43,9 @@ function c70406920.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_EARTH
,
RACE_MACHINE
,
4
,
1000
,
100
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
--atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
70406920
,
0
))
...
...
@@ -56,7 +56,8 @@ function c70406920.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCost
(
c70406920
.
atkcost
)
e1
:
SetOperation
(
c70406920
.
atkop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c70406920
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_MACHINE
)
end
...
...
c79852326.lua
View file @
3bd3081c
...
...
@@ -20,9 +20,9 @@ function c79852326.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_DARK
,
RACE_ZOMBIE
,
4
,
1800
,
50
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENCE
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP_DEFENCE
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
79852326
,
0
))
...
...
@@ -33,7 +33,8 @@ function c79852326.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTarget
(
c79852326
.
damtg
)
e1
:
SetOperation
(
c79852326
.
damop
)
e1
:
SetReset
(
RESET_EVENT
+
0x17e0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c79852326
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
...
...
c8522996.lua
View file @
3bd3081c
...
...
@@ -26,6 +26,7 @@ function c8522996.initial_effect(c)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetCondition
(
c8522996
.
chcon
)
e3
:
SetTarget
(
c8522996
.
splimit
)
c
:
RegisterEffect
(
e3
)
end
...
...
@@ -39,9 +40,10 @@ function c8522996.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
AddTrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_DARK
,
RACE_FIEND
,
6
,
1000
,
2400
)
Duel
.
SpecialSummon
(
c
,
1
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
1
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_EFFECT
)
Duel
.
SpecialSummonComplete
()
end
function
c8522996
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
...
...
c87772572.lua
View file @
3bd3081c
...
...
@@ -51,7 +51,8 @@ function c87772572.activate(e,tp,eg,ep,ev,re,r,rp)
local
att
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
87772572
,
0
,
0x11
,
0
,
2200
,
4
,
rac
,
att
)
then
return
end
c
:
AddTrapMonsterAttribute
(
TYPE_NORMAL
,
att
,
rac
,
4
,
0
,
2200
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
att
,
rac
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
)
Duel
.
SpecialSummonComplete
()
end
c90440725.lua
View file @
3bd3081c
...
...
@@ -25,9 +25,9 @@ function c90440725.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_EARTH
,
RACE_MACHINE
,
4
,
-
2
,
-
2
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -36,7 +36,7 @@ function c90440725.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c90440725
.
atkcon
)
e1
:
SetOperation
(
c90440725
.
atkop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
--turn set
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
90440725
,
0
))
...
...
@@ -48,7 +48,8 @@ function c90440725.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTarget
(
c90440725
.
settg
)
e2
:
SetOperation
(
c90440725
.
setop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
,
true
)
Duel
.
SpecialSummonComplete
()
end
function
c90440725
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
...
...
c92099232.lua
View file @
3bd3081c
...
...
@@ -20,7 +20,8 @@ function c92099232.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
AddTrapMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
,
ATTRIBUTE_EARTH
,
RACE_FIEND
,
2
,
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterBlock
()
c
:
AddMonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonsterComplete
(
TYPE_NORMAL
+
TYPE_TUNER
)
Duel
.
SpecialSummonComplete
()
end
c97232518.lua
View file @
3bd3081c
...
...
@@ -19,9 +19,9 @@ function c97232518.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
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
c
:
Add
TrapMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_LIGHT
,
RACE_THUNDER
,
5
,
190
0
,
0
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Block
(
)
c
:
Add
MonsterAttribute
(
0
,
0
,
0
,
0
,
0
)
Duel
.
SpecialSummon
Step
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
TrapMonster
Complete
(
TYPE_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -29,5 +29,6 @@ function c97232518.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonComplete
()
end
constant.lua
View file @
3bd3081c
...
...
@@ -443,7 +443,7 @@ EFFECT_EXTRA_RITUAL_MATERIAL =243--在墓地当做仪式祭品
EFFECT_NONTUNER
=
244
--同时当作调整以外的怪兽(幻影王 幽骑)
EFFECT_OVERLAY_REMOVE_REPLACE
=
245
--代替去除超量素材
EFFECT_SCRAP_CHIMERA
=
246
--废铁奇美拉
EFFECT_
SPSUM_EFFECT_ACTIVATED
=
250
--N/A
EFFECT_
PRE_MONSTER
=
250
--可存取怪獸的各項數值
EFFECT_MATERIAL_CHECK
=
251
--检查素材
EFFECT_DISABLE_FIELD
=
260
--无效区域(扰乱王等)
EFFECT_USE_EXTRA_MZONE
=
261
--怪兽区域封锁
...
...
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