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
4853b1e9
Commit
4853b1e9
authored
Jul 03, 2018
by
Koishi_Mint
Committed by
DailyShana
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Field Barrier (#1066)
parent
8bae85dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
c7153114.lua
c7153114.lua
+2
-17
No files found.
c7153114.lua
View file @
4853b1e9
...
@@ -11,8 +11,8 @@ function c7153114.initial_effect(c)
...
@@ -11,8 +11,8 @@ function c7153114.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
Set
Property
(
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_SET_AVAILABL
E
)
e2
:
Set
TargetRange
(
LOCATION_FZONE
,
LOCATION_FZON
E
)
e2
:
Set
Target
(
c7153114
.
infilter
)
e2
:
Set
Property
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--cannot activate
--cannot activate
...
@@ -24,22 +24,7 @@ function c7153114.initial_effect(c)
...
@@ -24,22 +24,7 @@ function c7153114.initial_effect(c)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetValue
(
c7153114
.
filter
)
e3
:
SetValue
(
c7153114
.
filter
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--cannot set
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_SSET
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTarget
(
c7153114
.
sfilter
)
c
:
RegisterEffect
(
e4
)
end
function
c7153114
.
infilter
(
e
,
c
)
return
c
:
IsType
(
TYPE_FIELD
)
end
end
function
c7153114
.
filter
(
e
,
re
,
tp
)
function
c7153114
.
filter
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
GetHandler
():
IsType
(
TYPE_FIELD
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c7153114
.
sfilter
(
e
,
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
and
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
~=
nil
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