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
6d6029bc
Commit
6d6029bc
authored
Sep 16, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restrict activate zone when placing pendulum cards
parent
34ff9d0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
c14733538.lua
c14733538.lua
+14
-0
c61884774.lua
c61884774.lua
+5
-0
constant.lua
constant.lua
+1
-1
No files found.
c14733538.lua
View file @
6d6029bc
...
@@ -5,15 +5,29 @@ function c14733538.initial_effect(c)
...
@@ -5,15 +5,29 @@ function c14733538.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOEXTRA
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_LIMIT_ZONE
)
e1
:
SetCountLimit
(
1
,
14733538
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
14733538
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c14733538
.
target
)
e1
:
SetTarget
(
c14733538
.
target
)
e1
:
SetOperation
(
c14733538
.
activate
)
e1
:
SetOperation
(
c14733538
.
activate
)
e1
:
SetValue
(
c14733538
.
zones
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c14733538
.
filter
(
c
,
e
,
tp
,
b1
,
setcode
)
function
c14733538
.
filter
(
c
,
e
,
tp
,
b1
,
setcode
)
return
c
:
IsSetCard
(
setcode
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
setcode
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
and
(
b1
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
and
(
b1
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
end
function
c14733538
.
zones
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
zone
=
0xff
local
p0
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
local
p1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
sp
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
false
,
0xc7
)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
false
,
0xda
)
if
p0
==
p1
or
sp
then
return
zone
end
if
p0
then
zone
=
zone
-
0x1
end
if
p1
then
zone
=
zone
-
0x10
end
return
zone
end
function
c14733538
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14733538
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c61884774.lua
View file @
6d6029bc
...
@@ -4,11 +4,16 @@ function c61884774.initial_effect(c)
...
@@ -4,11 +4,16 @@ function c61884774.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_LIMIT_ZONE
)
e1
:
SetCondition
(
c61884774
.
condition
)
e1
:
SetCondition
(
c61884774
.
condition
)
e1
:
SetTarget
(
c61884774
.
target
)
e1
:
SetTarget
(
c61884774
.
target
)
e1
:
SetOperation
(
c61884774
.
activate
)
e1
:
SetOperation
(
c61884774
.
activate
)
e1
:
SetValue
(
c61884774
.
zones
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c61884774
.
zones
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c61884774
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
0xff
or
0xe
end
function
c61884774
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61884774
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
end
...
...
constant.lua
View file @
6d6029bc
...
@@ -283,7 +283,7 @@ EFFECT_FLAG_OWNER_RELATE =0x1000000 --持續成為對象
...
@@ -283,7 +283,7 @@ EFFECT_FLAG_OWNER_RELATE =0x1000000 --持續成為對象
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
--战斗破坏确定时效果也适用(纳祭之魔 地狱战士)
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
--战斗破坏确定时效果也适用(纳祭之魔 地狱战士)
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
--客户端提示
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
--客户端提示
EFFECT_FLAG_CHAIN_UNIQUE
=
0x8000000
--N/A
EFFECT_FLAG_CHAIN_UNIQUE
=
0x8000000
--N/A
EFFECT_FLAG_
NAGA
=
0x10000000
--N/A
EFFECT_FLAG_
LIMIT_ZONE
=
0x10000000
--限制魔法·陷阱卡可以发动的区域
EFFECT_FLAG_COF
=
0x20000000
--N/A
EFFECT_FLAG_COF
=
0x20000000
--N/A
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
--N/A
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
--N/A
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
--卡在发动时效果就立即适用(卡通王國)
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
--卡在发动时效果就立即适用(卡通王國)
...
...
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