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
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
八宫一月
ygopro-scripts
Commits
de6defe1
Commit
de6defe1
authored
Mar 07, 2019
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
continuous trap with a target
parent
e1a93d09
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
111 additions
and
170 deletions
+111
-170
c12117532.lua
c12117532.lua
+1
-1
c14005031.lua
c14005031.lua
+2
-2
c17787975.lua
c17787975.lua
+4
-15
c25542642.lua
c25542642.lua
+2
-5
c29267084.lua
c29267084.lua
+24
-25
c2930675.lua
c2930675.lua
+1
-1
c36975314.lua
c36975314.lua
+7
-11
c42233477.lua
c42233477.lua
+11
-10
c42776855.lua
c42776855.lua
+6
-20
c50078509.lua
c50078509.lua
+5
-19
c54175023.lua
c54175023.lua
+5
-19
c54704216.lua
c54704216.lua
+32
-22
c61936647.lua
c61936647.lua
+6
-20
utility.lua
utility.lua
+5
-0
No files found.
c12117532.lua
View file @
de6defe1
...
...
@@ -6,7 +6,7 @@ function c12117532.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTarget
(
c12117532
.
target
)
e1
:
SetOperation
(
c12117532
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
c14005031.lua
View file @
de6defe1
...
...
@@ -3,7 +3,7 @@ function c14005031.initial_effect(c)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetTarget
(
c14005031
.
target
)
...
...
@@ -54,7 +54,7 @@ function c14005031.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c14005031
.
disable
(
e
,
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsType
(
TYPE_EFFECT
)
or
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_EFFECT
)
==
TYPE_EFFECT
end
function
c14005031
.
discon
(
e
)
return
e
:
GetHandler
():
GetFirstCardTarget
()
~=
nil
...
...
c17787975.lua
View file @
de6defe1
...
...
@@ -4,18 +4,10 @@ function c17787975.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTarget
(
c17787975
.
target
)
e1
:
SetOperation
(
c17787975
.
tgop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetCondition
(
c17787975
.
tgcon
)
e2
:
SetOperation
(
c17787975
.
tgop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
17787975
,
0
))
...
...
@@ -46,13 +38,10 @@ function c17787975.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c17787975
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c17787975
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
==
e
:
GetLabelObject
()
end
function
c17787975
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
Get
ChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
):
GetFirs
t
()
if
c
:
IsRelateToEffect
(
re
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
r
e
)
then
local
tc
=
Duel
.
Get
FirstTarge
t
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
end
...
...
c25542642.lua
View file @
de6defe1
...
...
@@ -16,7 +16,7 @@ function c25542642.initial_effect(c)
e3
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c25542642
.
ctg
)
e3
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e3
)
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EFFECT_DISABLE
)
...
...
@@ -27,7 +27,7 @@ function c25542642.initial_effect(c)
e4
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetValue
(
c25542642
.
ctg
)
e4
:
SetValue
(
aux
.
ctg
)
c
:
RegisterEffect
(
e4
)
--destroy
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -68,9 +68,6 @@ function c25542642.tgop(e,tp,eg,ep,ev,re,r,rp)
c
:
SetCardTarget
(
tc
)
end
end
function
c25542642
.
ctg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
function
c25542642
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
...
...
c29267084.lua
View file @
de6defe1
...
...
@@ -5,20 +5,37 @@ function c29267084.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
c29267084
.
condition
)
e1
:
SetTarget
(
c29267084
.
target
)
e1
:
SetOperation
(
c29267084
.
operation
)
c
:
RegisterEffect
(
e1
)
--
Destroy
--
cannot attack, atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetCondition
(
c29267084
.
descon
)
e2
:
SetOperation
(
c29267084
.
desop
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetValue
(
-
700
)
c
:
RegisterEffect
(
e3
)
--cannot change position
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
c
:
RegisterEffect
(
e4
)
--Destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCondition
(
c29267084
.
descon
)
e5
:
SetOperation
(
c29267084
.
desop
)
c
:
RegisterEffect
(
e5
)
end
function
c29267084
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
...
...
@@ -32,28 +49,10 @@ end
function
c29267084
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetCondition
(
c29267084
.
rcon
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetValue
(
-
700
)
tc
:
RegisterEffect
(
e3
,
true
)
end
end
function
c29267084
.
rcon
(
e
)
return
e
:
GetOwner
():
IsHasCardTarget
(
e
:
GetHandler
())
end
function
c29267084
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
...
...
c2930675.lua
View file @
de6defe1
--星遺物へ
と
至る鍵
--星遺物へ至る鍵
function
c2930675
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c36975314.lua
View file @
de6defe1
...
...
@@ -41,16 +41,17 @@ function c36975314.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetCondition
(
c36975314
.
con
)
tc
:
RegisterEffect
(
e1
,
true
)
--cannot attack, trigger
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
+
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e2
:
SetCondition
(
c36975314
.
rcon
)
tc
:
RegisterEffect
(
e2
,
true
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
tc
:
RegisterEffect
(
e3
,
true
)
c
:
RegisterEffect
(
e3
)
end
end
function
c36975314
.
con
(
e
)
...
...
@@ -61,11 +62,6 @@ end
function
c36975314
.
ctval
(
e
,
c
)
return
e
:
GetOwnerPlayer
()
end
function
c36975314
.
rcon
(
e
)
local
c
=
e
:
GetOwner
()
local
h
=
e
:
GetHandler
()
return
c
:
IsHasCardTarget
(
h
)
and
h
:
IsControler
(
c
:
GetControler
())
and
not
c
:
IsDisabled
()
end
function
c36975314
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
...
...
c42233477.lua
View file @
de6defe1
...
...
@@ -5,12 +5,21 @@ function c42233477.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
c42233477
.
condition
)
e1
:
SetTarget
(
c42233477
.
target
)
e1
:
SetOperation
(
c42233477
.
activate
)
c
:
RegisterEffect
(
e1
)
--atk up
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
ctg
)
e3
:
SetValue
(
1000
)
c
:
RegisterEffect
(
e3
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
...
@@ -37,14 +46,6 @@ function c42233477.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCondition
(
c42233477
.
rcon
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_BATTLE_DESTROY_REDIRECT
)
...
...
@@ -52,7 +53,7 @@ function c42233477.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCondition
(
c42233477
.
rcon
)
e2
:
SetValue
(
LOCATION_HAND
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
function
c42233477
.
rcon
(
e
)
...
...
c42776855.lua
View file @
de6defe1
...
...
@@ -5,25 +5,17 @@ function c42776855.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTarget
(
c42776855
.
target
)
e1
:
SetOperation
(
c42776855
.
tgop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetCondition
(
c42776855
.
tgcon
)
e2
:
SetOperation
(
c42776855
.
tgop
)
c
:
RegisterEffect
(
e2
)
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c42776855
.
indes
tg
)
e3
:
SetTarget
(
aux
.
c
tg
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
...
...
@@ -40,7 +32,7 @@ function c42776855.initial_effect(c)
e5
:
SetCondition
(
c42776855
.
atkcon
)
e5
:
SetOperation
(
c42776855
.
atkop
)
c
:
RegisterEffect
(
e5
)
--
Destroy2
--
self destroy
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e7
:
SetRange
(
LOCATION_SZONE
)
...
...
@@ -59,19 +51,13 @@ function c42776855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c42776855
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c42776855
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
==
e
:
GetLabelObject
()
end
function
c42776855
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
Get
ChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
):
GetFirs
t
()
if
c
:
IsRelateToEffect
(
re
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
r
e
)
then
local
tc
=
Duel
.
Get
FirstTarge
t
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
end
function
c42776855
.
indestg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
function
c42776855
.
efilter
(
e
,
re
)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
end
...
...
c50078509.lua
View file @
de6defe1
...
...
@@ -6,25 +6,17 @@ function c50078509.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTarget
(
c50078509
.
target
)
e1
:
SetOperation
(
c50078509
.
tgop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetCondition
(
c50078509
.
tgcon
)
e2
:
SetOperation
(
c50078509
.
tgop
)
c
:
RegisterEffect
(
e2
)
--disable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c50078509
.
dis
tg
)
e3
:
SetTarget
(
aux
.
c
tg
)
c
:
RegisterEffect
(
e3
)
--cannot attack
local
e4
=
e3
:
Clone
()
...
...
@@ -49,19 +41,13 @@ function c50078509.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c50078509
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
function
c50078509
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
==
e
:
GetLabelObject
()
end
function
c50078509
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
Get
ChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
):
GetFirs
t
()
if
c
:
IsRelateToEffect
(
re
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
r
e
)
then
local
tc
=
Duel
.
Get
FirstTarge
t
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
end
function
c50078509
.
distg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
function
c50078509
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
...
...
c54175023.lua
View file @
de6defe1
...
...
@@ -4,18 +4,10 @@ function c54175023.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTarget
(
c54175023
.
target
)
e1
:
SetOperation
(
c54175023
.
tgop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetCondition
(
c54175023
.
tgcon
)
e2
:
SetOperation
(
c54175023
.
tgop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -23,7 +15,7 @@ function c54175023.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetValue
(
1
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c54175023
.
ind
tg
)
e3
:
SetTarget
(
aux
.
c
tg
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
@@ -43,19 +35,13 @@ function c54175023.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUPATTACK
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsPosition
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
POS_FACEUP_ATTACK
)
end
function
c54175023
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
==
e
:
GetLabelObject
()
end
function
c54175023
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
Get
ChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
):
GetFirs
t
()
if
c
:
IsRelateToEffect
(
re
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
r
e
)
then
local
tc
=
Duel
.
Get
FirstTarge
t
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
end
function
c54175023
.
indtg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
function
c54175023
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
...
...
c54704216.lua
View file @
de6defe1
...
...
@@ -6,31 +6,43 @@ function c54704216.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_STANDBY_PHASE
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTarget
(
c54704216
.
target
)
e1
:
SetOperation
(
c54704216
.
operation
)
c
:
RegisterEffect
(
e1
)
--
damage
--
cannot attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
54704216
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCategory
(
CATEGORY_DAMAGE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c54704216
.
damcon
)
e2
:
SetTarget
(
c54704216
.
damtg
)
e2
:
SetOperation
(
c54704216
.
damop
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e2
)
--Destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetCondition
(
c54704216
.
descon
)
e3
:
SetOperation
(
c54704216
.
desop
)
--cannot change position
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
c
:
RegisterEffect
(
e3
)
e1
:
SetLabelObject
(
e3
)
--damage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
54704216
,
0
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCategory
(
CATEGORY_DAMAGE
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c54704216
.
damcon
)
e4
:
SetTarget
(
c54704216
.
damtg
)
e4
:
SetOperation
(
c54704216
.
damop
)
c
:
RegisterEffect
(
e4
)
--Destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCondition
(
c54704216
.
descon
)
e5
:
SetOperation
(
c54704216
.
desop
)
c
:
RegisterEffect
(
e5
)
end
function
c54704216
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
end
...
...
@@ -43,8 +55,6 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
CreateRelation
(
tc
,
RESET_EVENT
+
RESETS_STANDARD
)
e
:
GetLabelObject
():
SetLabelObject
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_SZONE
)
...
...
@@ -65,8 +75,8 @@ end
function
c54704216
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
local
tc
=
e
:
GetLabelObjec
t
()
return
tc
and
eg
:
IsContains
(
tc
)
and
c
:
IsRelateToCard
(
tc
)
local
tc
=
c
:
GetFirstCardTarge
t
()
return
tc
and
eg
:
IsContains
(
tc
)
and
tc
:
IsReason
(
REASON_DESTROY
)
end
function
c54704216
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
...
...
c61936647.lua
View file @
de6defe1
...
...
@@ -4,28 +4,20 @@ function c61936647.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCondition
(
c61936647
.
condition
)
e1
:
SetTarget
(
c61936647
.
target
)
e1
:
SetOperation
(
c61936647
.
tgop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetCondition
(
c61936647
.
tgcon
)
e2
:
SetOperation
(
c61936647
.
tgop
)
c
:
RegisterEffect
(
e2
)
--atk up
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c61936647
.
ctg
)
e3
:
SetTarget
(
aux
.
ctg
)
e3
:
SetValue
(
800
)
c
:
RegisterEffect
(
e3
)
--destroy replace
...
...
@@ -70,21 +62,15 @@ function c61936647.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
function
c61936647
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
==
e
:
GetLabelObject
()
end
function
c61936647
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
Get
ChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
):
GetFirs
t
()
if
c
:
IsRelateToEffect
(
re
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
r
e
)
then
local
tc
=
Duel
.
Get
FirstTarge
t
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
end
function
c61936647
.
ctg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
end
function
c61936647
.
repfilter
(
c
,
e
)
return
c61936647
.
ctg
(
e
,
c
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
return
aux
.
ctg
(
e
,
c
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c61936647
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
utility.lua
View file @
de6defe1
...
...
@@ -1861,6 +1861,7 @@ function Auxiliary.GetColumn(c,p)
else
return
nil
end
if
c
:
IsControler
(
p
or
0
)
then
return
seq
else
return
4
-
seq
end
end
--return the column of seq
function
Auxiliary
.
MZoneSequence
(
seq
)
if
seq
==
5
then
return
1
end
if
seq
==
6
then
return
3
end
...
...
@@ -2151,3 +2152,7 @@ function Group.SelectSubGroup(g,tp,f,cancelable,min,max,...)
return
nil
end
end
--target function of continuous trap with a card target
function
Auxiliary
.
ctg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
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