Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
bc98ce92
Commit
bc98ce92
authored
Jun 13, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f59ab7ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
script/c18482591.lua
script/c18482591.lua
+27
-14
No files found.
script/c18482591.lua
View file @
bc98ce92
--氷結界の破術師
--氷結界の破術師
function
c18482591
.
initial_effect
(
c
)
function
c18482591
.
initial_effect
(
c
)
--cannot activate
--cannot activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c18482591
.
con
)
e2
:
SetTargetRange
(
1
,
1
)
e1
:
SetTarget
(
c18482591
.
targets
)
e2
:
SetCondition
(
c18482591
.
con
)
e1
:
SetTargetRange
(
LOCATION_HAND
+
LOCATION_SZONE
,
LOCATION_HAND
+
LOCATION_SZONE
)
e2
:
SetValue
(
c18482591
.
aclimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_SSET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c18482591
.
con
)
e3
:
SetOperation
(
c18482591
.
aclimset
)
c
:
RegisterEffect
(
e3
)
end
end
function
c18482591
.
filter
(
c
)
function
c18482591
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2f
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2f
)
...
@@ -17,9 +24,15 @@ end
...
@@ -17,9 +24,15 @@ end
function
c18482591
.
con
(
e
)
function
c18482591
.
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c18482591
.
filter
,
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c18482591
.
filter
,
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
end
function
c18482591
.
targets
(
e
,
c
)
function
c18482591
.
aclimit
(
e
,
re
,
tp
)
if
not
c
:
IsType
(
TYPE_SPELL
)
then
return
false
end
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
false
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
return
true
end
local
c
=
re
:
GetHandler
()
if
c
:
IsFaceup
()
then
return
false
end
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
or
c
:
GetFlagEffect
(
18482591
)
>
0
return
Duel
.
GetTurnCount
()
-
c
:
GetTurnID
()
<
2
end
function
c18482591
.
aclimset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
tc
:
RegisterFlagEffect
(
18482591
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_OPPO_TURN
,
0
,
1
)
tc
=
eg
:
GetNext
()
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment