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
576ed0c4
Commit
576ed0c4
authored
Jan 19, 2024
by
mercury233
Committed by
GitHub
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix control changed effect activate (#2286)" (#2358)
parent
57d9f7c6
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
42 additions
and
274 deletions
+42
-274
c2645637.lua
c2645637.lua
+2
-13
c31629407.lua
c31629407.lua
+2
-13
c32841045.lua
c32841045.lua
+2
-13
c33158448.lua
c33158448.lua
+2
-13
c37414347.lua
c37414347.lua
+2
-13
c49655592.lua
c49655592.lua
+2
-13
c50237654.lua
c50237654.lua
+2
-13
c5230799.lua
c5230799.lua
+2
-13
c55591586.lua
c55591586.lua
+2
-13
c59297550.lua
c59297550.lua
+2
-13
c62967433.lua
c62967433.lua
+2
-13
c67045745.lua
c67045745.lua
+2
-13
c6764709.lua
c6764709.lua
+2
-13
c68024506.lua
c68024506.lua
+2
-13
c68246154.lua
c68246154.lua
+2
-13
c73639099.lua
c73639099.lua
+2
-14
c75059201.lua
c75059201.lua
+2
-13
c75676192.lua
c75676192.lua
+2
-13
c78310590.lua
c78310590.lua
+2
-13
c93449450.lua
c93449450.lua
+2
-13
c94418111.lua
c94418111.lua
+2
-13
No files found.
c2645637.lua
View file @
576ed0c4
...
@@ -12,19 +12,11 @@ function c2645637.initial_effect(c)
...
@@ -12,19 +12,11 @@ function c2645637.initial_effect(c)
e1
:
SetOperation
(
c2645637
.
disop
)
e1
:
SetOperation
(
c2645637
.
disop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atk
--atk
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c2645637
.
atkcon3
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
2645637
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
2645637
,
0
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DISABLE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e2
:
SetCode
(
EVENT_CHAIN
ING
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
2
,
2645637
)
e2
:
SetCountLimit
(
2
,
2645637
)
...
@@ -42,11 +34,8 @@ function c2645637.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,11 +34,8 @@ function c2645637.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
end
end
function
c2645637
.
atkcon3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_GRAVE
end
function
c2645637
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2645637
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_GRAVE
end
end
function
c2645637
.
spfilter
(
c
)
function
c2645637
.
spfilter
(
c
)
return
c
:
IsSummonLocation
(
LOCATION_GRAVE
)
return
c
:
IsSummonLocation
(
LOCATION_GRAVE
)
...
...
c31629407.lua
View file @
576ed0c4
...
@@ -12,20 +12,12 @@ function c31629407.initial_effect(c)
...
@@ -12,20 +12,12 @@ function c31629407.initial_effect(c)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--special summon
--special summon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c31629407
.
colcheck
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
31629407
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
31629407
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
31629407
)
e3
:
SetCountLimit
(
1
,
31629407
)
e3
:
SetCondition
(
c31629407
.
spcon
)
e3
:
SetCondition
(
c31629407
.
spcon
)
...
@@ -33,11 +25,8 @@ function c31629407.initial_effect(c)
...
@@ -33,11 +25,8 @@ function c31629407.initial_effect(c)
e3
:
SetOperation
(
c31629407
.
spop
)
e3
:
SetOperation
(
c31629407
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c31629407
.
colcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
function
c31629407
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31629407
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
end
function
c31629407
.
spfilter
(
c
,
e
,
tp
)
function
c31629407
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
31629407
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
31629407
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c32841045.lua
View file @
576ed0c4
...
@@ -12,20 +12,12 @@ function c32841045.initial_effect(c)
...
@@ -12,20 +12,12 @@ function c32841045.initial_effect(c)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--search
--search
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c32841045
.
colcheck
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
32841045
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
32841045
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
32841045
)
e3
:
SetCountLimit
(
1
,
32841045
)
e3
:
SetCondition
(
c32841045
.
thcon
)
e3
:
SetCondition
(
c32841045
.
thcon
)
...
@@ -33,11 +25,8 @@ function c32841045.initial_effect(c)
...
@@ -33,11 +25,8 @@ function c32841045.initial_effect(c)
e3
:
SetOperation
(
c32841045
.
thop
)
e3
:
SetOperation
(
c32841045
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c32841045
.
colcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
function
c32841045
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32841045
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
end
function
c32841045
.
thfilter
(
c
,
rc
)
function
c32841045
.
thfilter
(
c
,
rc
)
return
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
rc
:
GetCode
())
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
rc
:
GetCode
())
and
c
:
IsAbleToHand
()
...
...
c33158448.lua
View file @
576ed0c4
...
@@ -10,19 +10,11 @@ function c33158448.initial_effect(c)
...
@@ -10,19 +10,11 @@ function c33158448.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c33158448
.
atkval
)
e1
:
SetValue
(
c33158448
.
atkval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c33158448
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
33158448
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
33158448
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c33158448
.
lvcon
)
e3
:
SetCondition
(
c33158448
.
lvcon
)
...
@@ -50,11 +42,8 @@ end
...
@@ -50,11 +42,8 @@ end
function
c33158448
.
atkval
(
e
,
c
)
function
c33158448
.
atkval
(
e
,
c
)
return
c
:
GetLevel
()
*
300
return
c
:
GetLevel
()
*
300
end
end
function
c33158448
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c33158448
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33158448
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c33158448
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33158448
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c37414347.lua
View file @
576ed0c4
...
@@ -23,19 +23,11 @@ function c37414347.initial_effect(c)
...
@@ -23,19 +23,11 @@ function c37414347.initial_effect(c)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--counter
--counter
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c37414347
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
37414347
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
37414347
,
0
))
e4
:
SetCategory
(
CATEGORY_COUNTER
)
e4
:
SetCategory
(
CATEGORY_COUNTER
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN
ING
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c37414347
.
ctcon
)
e4
:
SetCondition
(
c37414347
.
ctcon
)
...
@@ -64,11 +56,8 @@ function c37414347.atkval(e,c)
...
@@ -64,11 +56,8 @@ function c37414347.atkval(e,c)
local
lg
=
c
:
GetLinkedGroup
():
Filter
(
c37414347
.
atkfilter
,
nil
)
local
lg
=
c
:
GetLinkedGroup
():
Filter
(
c37414347
.
atkfilter
,
nil
)
return
lg
:
GetSum
(
Card
.
GetLevel
)
*
300
return
lg
:
GetSum
(
Card
.
GetLevel
)
*
300
end
end
function
c37414347
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c37414347
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c37414347
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c37414347
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c37414347
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c49655592.lua
View file @
576ed0c4
...
@@ -28,19 +28,11 @@ function c49655592.initial_effect(c)
...
@@ -28,19 +28,11 @@ function c49655592.initial_effect(c)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--lv up
--lv up
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c49655592
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
49655592
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
49655592
,
0
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN
ING
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c49655592
.
lvcon
)
e4
:
SetCondition
(
c49655592
.
lvcon
)
...
@@ -68,11 +60,8 @@ end
...
@@ -68,11 +60,8 @@ end
function
c49655592
.
atkval
(
e
,
c
)
function
c49655592
.
atkval
(
e
,
c
)
return
c
:
GetLevel
()
*
300
return
c
:
GetLevel
()
*
300
end
end
function
c49655592
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c49655592
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49655592
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c49655592
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49655592
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c50237654.lua
View file @
576ed0c4
...
@@ -4,19 +4,11 @@ function c50237654.initial_effect(c)
...
@@ -4,19 +4,11 @@ function c50237654.initial_effect(c)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFun
(
c
,{
46986414
,
38033121
},
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_SPELLCASTER
),
1
,
true
,
true
)
aux
.
AddFusionProcCodeFun
(
c
,{
46986414
,
38033121
},
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_SPELLCASTER
),
1
,
true
,
true
)
--draw
--draw
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c50237654
.
drcon1
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
50237654
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
50237654
,
1
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e1
:
SetCode
(
EVENT_CHAIN
ING
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
...
@@ -34,11 +26,8 @@ function c50237654.initial_effect(c)
...
@@ -34,11 +26,8 @@ function c50237654.initial_effect(c)
e2
:
SetOperation
(
c50237654
.
spop
)
e2
:
SetOperation
(
c50237654
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c50237654
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c50237654
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50237654
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c50237654
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50237654
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
c5230799.lua
View file @
576ed0c4
...
@@ -12,20 +12,12 @@ function c5230799.initial_effect(c)
...
@@ -12,20 +12,12 @@ function c5230799.initial_effect(c)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--draw
--draw
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c5230799
.
colcheck
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
5230799
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
5230799
,
0
))
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
5230799
)
e3
:
SetCountLimit
(
1
,
5230799
)
e3
:
SetCondition
(
c5230799
.
drcon
)
e3
:
SetCondition
(
c5230799
.
drcon
)
...
@@ -34,11 +26,8 @@ function c5230799.initial_effect(c)
...
@@ -34,11 +26,8 @@ function c5230799.initial_effect(c)
e3
:
SetOperation
(
c5230799
.
drop
)
e3
:
SetOperation
(
c5230799
.
drop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c5230799
.
colcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
function
c5230799
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5230799
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
end
function
c5230799
.
cfilter
(
c
)
function
c5230799
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsDiscardable
()
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsDiscardable
()
...
...
c55591586.lua
View file @
576ed0c4
...
@@ -12,19 +12,11 @@ function c55591586.initial_effect(c)
...
@@ -12,19 +12,11 @@ function c55591586.initial_effect(c)
e1
:
SetOperation
(
c55591586
.
spop
)
e1
:
SetOperation
(
c55591586
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atk
--atk
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c55591586
.
atkcon1
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55591586
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
55591586
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e2
:
SetCode
(
EVENT_CHAIN
ING
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c55591586
.
atkcon
)
e2
:
SetCondition
(
c55591586
.
atkcon
)
...
@@ -71,13 +63,10 @@ function c55591586.spop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -71,13 +63,10 @@ function c55591586.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_LIGHT
,
ATTRIBUTE_DARK
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
gfcheck
,
false
,
2
,
2
,
Card
.
IsAttribute
,
ATTRIBUTE_LIGHT
,
ATTRIBUTE_DARK
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c55591586
.
atkcon
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55591586
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
==
LOCATION_HAND
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
==
LOCATION_HAND
end
end
function
c55591586
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
end
function
c55591586
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55591586
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
...
...
c59297550.lua
View file @
576ed0c4
--ゼンマイマジシャン
--ゼンマイマジシャン
function
c59297550
.
initial_effect
(
c
)
function
c59297550
.
initial_effect
(
c
)
--special summon
--special summon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c59297550
.
spcon1
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
59297550
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
59297550
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e1
:
SetCode
(
EVENT_CHAIN
ING
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c59297550
.
spcon
)
e1
:
SetCondition
(
c59297550
.
spcon
)
e1
:
SetTarget
(
c59297550
.
sptg
)
e1
:
SetTarget
(
c59297550
.
sptg
)
e1
:
SetOperation
(
c59297550
.
spop
)
e1
:
SetOperation
(
c59297550
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c59297550
.
spcon
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59297550
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x58
)
and
not
re
:
GetHandler
():
IsCode
(
59297550
)
and
re
:
GetHandler
():
IsSetCard
(
0x58
)
and
not
re
:
GetHandler
():
IsCode
(
59297550
)
end
end
function
c59297550
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
end
function
c59297550
.
filter
(
c
,
e
,
tp
)
function
c59297550
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x58
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x58
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c62967433.lua
View file @
576ed0c4
...
@@ -17,20 +17,12 @@ function s.initial_effect(c)
...
@@ -17,20 +17,12 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
tdop
)
e1
:
SetOperation
(
s
.
tdop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
s
.
spcon1
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e2
:
SetCode
(
EVENT_CHAIN
ING
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetCondition
(
s
.
spcon
)
...
@@ -61,11 +53,8 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,11 +53,8 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
function
s
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetActiveType
()
==
TYPE_TRAP
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetActiveType
()
==
TYPE_TRAP
end
end
function
s
.
spfilter
(
c
,
e
,
tp
)
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c67045745.lua
View file @
576ed0c4
...
@@ -15,19 +15,11 @@ function c67045745.initial_effect(c)
...
@@ -15,19 +15,11 @@ function c67045745.initial_effect(c)
e2
:
SetValue
(
c67045745
.
indval
)
e2
:
SetValue
(
c67045745
.
indval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--lv up
--lv up
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c67045745
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
67045745
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
67045745
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c67045745
.
lvcon
)
e3
:
SetCondition
(
c67045745
.
lvcon
)
...
@@ -54,11 +46,8 @@ function c67045745.indval(e,c)
...
@@ -54,11 +46,8 @@ function c67045745.indval(e,c)
return
c
:
GetOriginalLevel
()
<
lv
return
c
:
GetOriginalLevel
()
<
lv
else
return
false
end
else
return
false
end
end
end
function
c67045745
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c67045745
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67045745
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c67045745
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67045745
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c6764709.lua
View file @
576ed0c4
...
@@ -17,19 +17,11 @@ function c6764709.initial_effect(c)
...
@@ -17,19 +17,11 @@ function c6764709.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
c6764709
.
atkval
)
e2
:
SetValue
(
c6764709
.
atkval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c6764709
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
6764709
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
6764709
,
0
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN
ING
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c6764709
.
lvcon
)
e4
:
SetCondition
(
c6764709
.
lvcon
)
...
@@ -63,11 +55,8 @@ end
...
@@ -63,11 +55,8 @@ end
function
c6764709
.
atkval
(
e
,
c
)
function
c6764709
.
atkval
(
e
,
c
)
return
c
:
GetLevel
()
*
300
return
c
:
GetLevel
()
*
300
end
end
function
c6764709
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c6764709
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6764709
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c6764709
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6764709
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c68024506.lua
View file @
576ed0c4
...
@@ -12,20 +12,12 @@ function c68024506.initial_effect(c)
...
@@ -12,20 +12,12 @@ function c68024506.initial_effect(c)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--special summon
--special summon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c68024506
.
colcheck
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
68024506
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
68024506
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
68024506
)
e3
:
SetCountLimit
(
1
,
68024506
)
e3
:
SetCondition
(
c68024506
.
spcon
)
e3
:
SetCondition
(
c68024506
.
spcon
)
...
@@ -33,11 +25,8 @@ function c68024506.initial_effect(c)
...
@@ -33,11 +25,8 @@ function c68024506.initial_effect(c)
e3
:
SetOperation
(
c68024506
.
spop
)
e3
:
SetOperation
(
c68024506
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c68024506
.
colcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
function
c68024506
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68024506
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
end
function
c68024506
.
filter
(
c
,
e
,
tp
)
function
c68024506
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c68246154.lua
View file @
576ed0c4
...
@@ -12,20 +12,12 @@ function c68246154.initial_effect(c)
...
@@ -12,20 +12,12 @@ function c68246154.initial_effect(c)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--tohand
--tohand
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c68246154
.
colcheck
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
68246154
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
68246154
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
68246154
)
e3
:
SetCountLimit
(
1
,
68246154
)
e3
:
SetCondition
(
c68246154
.
thcon
)
e3
:
SetCondition
(
c68246154
.
thcon
)
...
@@ -33,11 +25,8 @@ function c68246154.initial_effect(c)
...
@@ -33,11 +25,8 @@ function c68246154.initial_effect(c)
e3
:
SetOperation
(
c68246154
.
thop
)
e3
:
SetOperation
(
c68246154
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c68246154
.
colcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
function
c68246154
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68246154
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
end
function
c68246154
.
thfilter
(
c
,
rc
)
function
c68246154
.
thfilter
(
c
,
rc
)
return
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
rc
:
GetCode
())
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
rc
:
GetCode
())
and
c
:
IsAbleToHand
()
...
...
c73639099.lua
View file @
576ed0c4
...
@@ -12,22 +12,13 @@ function c73639099.initial_effect(c)
...
@@ -12,22 +12,13 @@ function c73639099.initial_effect(c)
e1
:
SetCondition
(
c73639099
.
imcon
)
e1
:
SetCondition
(
c73639099
.
imcon
)
e1
:
SetValue
(
c73639099
.
efilter
)
e1
:
SetValue
(
c73639099
.
efilter
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--special summon
--special summon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c73639099
.
spcon1
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
73639099
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
73639099
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
73639099
)
e3
:
SetCountLimit
(
1
,
73639099
)
e3
:
SetCondition
(
c73639099
.
spcon
)
e3
:
SetCondition
(
c73639099
.
spcon
)
...
@@ -56,11 +47,8 @@ end
...
@@ -56,11 +47,8 @@ end
function
c73639099
.
efilter
(
e
,
te
)
function
c73639099
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_TRAP
)
return
te
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
c73639099
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
end
function
c73639099
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73639099
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
GetType
()
==
TYPE_TRAP
end
end
function
c73639099
.
cfilter
(
c
,
code
)
function
c73639099
.
cfilter
(
c
,
code
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
code
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
code
)
...
...
c75059201.lua
View file @
576ed0c4
...
@@ -27,19 +27,11 @@ function c75059201.initial_effect(c)
...
@@ -27,19 +27,11 @@ function c75059201.initial_effect(c)
e3
:
SetValue
(
c75059201
.
tgval
)
e3
:
SetValue
(
c75059201
.
tgval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--lv up
--lv up
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c75059201
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
75059201
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
75059201
,
0
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN
ING
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c75059201
.
lvcon
)
e4
:
SetCondition
(
c75059201
.
lvcon
)
...
@@ -83,11 +75,8 @@ function c75059201.tgval(e,re,rp)
...
@@ -83,11 +75,8 @@ function c75059201.tgval(e,re,rp)
return
c
:
GetOriginalLevel
()
<
lv
return
c
:
GetOriginalLevel
()
<
lv
else
return
false
end
else
return
false
end
end
end
function
c75059201
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c75059201
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75059201
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c75059201
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75059201
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c75676192.lua
View file @
576ed0c4
...
@@ -11,19 +11,11 @@ function c75676192.initial_effect(c)
...
@@ -11,19 +11,11 @@ function c75676192.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c75676192
.
atkval
)
e1
:
SetValue
(
c75676192
.
atkval
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c75676192
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
75676192
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
75676192
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c75676192
.
lvcon
)
e3
:
SetCondition
(
c75676192
.
lvcon
)
...
@@ -57,11 +49,8 @@ end
...
@@ -57,11 +49,8 @@ end
function
c75676192
.
atkval
(
e
,
c
)
function
c75676192
.
atkval
(
e
,
c
)
return
c
:
GetLevel
()
*
300
return
c
:
GetLevel
()
*
300
end
end
function
c75676192
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c75676192
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75676192
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c75676192
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75676192
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c78310590.lua
View file @
576ed0c4
...
@@ -34,19 +34,11 @@ function c78310590.initial_effect(c)
...
@@ -34,19 +34,11 @@ function c78310590.initial_effect(c)
e3
:
SetOperation
(
c78310590
.
spop
)
e3
:
SetOperation
(
c78310590
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon (deck)
--spsummon (deck)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c78310590
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
78310590
,
2
))
e5
:
SetDescription
(
aux
.
Stringid
(
78310590
,
2
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e5
:
SetCode
(
EVENT_CHAIN
ING
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCountLimit
(
1
,
78310592
)
e5
:
SetCountLimit
(
1
,
78310592
)
...
@@ -109,11 +101,8 @@ function c78310590.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -109,11 +101,8 @@ function c78310590.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c78310590
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
GetHandler
():
IsSetCard
(
0x20ec
)
end
function
c78310590
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78310590
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
GetHandler
():
IsSetCard
(
0x20ec
)
end
end
function
c78310590
.
spfilter
(
c
,
e
,
tp
)
function
c78310590
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x10ec
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x10ec
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c93449450.lua
View file @
576ed0c4
...
@@ -17,19 +17,11 @@ function c93449450.initial_effect(c)
...
@@ -17,19 +17,11 @@ function c93449450.initial_effect(c)
e2
:
SetValue
(
c93449450
.
immval
)
e2
:
SetValue
(
c93449450
.
immval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--lv up
--lv up
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c93449450
.
spchk
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
93449450
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
93449450
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c93449450
.
lvcon
)
e3
:
SetCondition
(
c93449450
.
lvcon
)
...
@@ -61,11 +53,8 @@ function c93449450.immval(e,te)
...
@@ -61,11 +53,8 @@ function c93449450.immval(e,te)
else
return
false
end
else
return
false
end
else
return
false
end
else
return
false
end
end
end
function
c93449450
.
spchk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
function
c93449450
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93449450
.
lvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetHandler
():
IsSetCard
(
0x107
)
end
end
function
c93449450
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93449450
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c94418111.lua
View file @
576ed0c4
...
@@ -12,20 +12,12 @@ function c94418111.initial_effect(c)
...
@@ -12,20 +12,12 @@ function c94418111.initial_effect(c)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--draw
--draw
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetCondition
(
c94418111
.
colcheck
)
e0
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
94418111
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
94418111
,
0
))
e3
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e3
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_DRAW
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_CHAIN
_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN
ING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
94418111
)
e3
:
SetCountLimit
(
1
,
94418111
)
e3
:
SetCondition
(
c94418111
.
tdcon
)
e3
:
SetCondition
(
c94418111
.
tdcon
)
...
@@ -33,11 +25,8 @@ function c94418111.initial_effect(c)
...
@@ -33,11 +25,8 @@ function c94418111.initial_effect(c)
e3
:
SetOperation
(
c94418111
.
tdop
)
e3
:
SetOperation
(
c94418111
.
tdop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c94418111
.
colcheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
function
c94418111
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94418111
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
end
function
c94418111
.
filter
(
c
)
function
c94418111
.
filter
(
c
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsAbleToDeck
()
...
...
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