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
3
Merge Requests
3
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
4696f27c
Commit
4696f27c
authored
Dec 28, 2021
by
salix5
Committed by
GitHub
Dec 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove EFFECT_FLAG2_MILLENNIUM_RESTRICT (#1777)
parent
3639b36e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
21 deletions
+5
-21
c41578483.lua
c41578483.lua
+3
-4
constant.lua
constant.lua
+1
-1
utility.lua
utility.lua
+1
-16
No files found.
c41578483.lua
View file @
4696f27c
...
@@ -32,7 +32,6 @@ function c41578483.initial_effect(c)
...
@@ -32,7 +32,6 @@ function c41578483.initial_effect(c)
--disable
--disable
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetProperty
(
0
,
EFFECT_FLAG2_MILLENNIUM_RESTRICT
)
e4
:
SetCode
(
EFFECT_DISABLE
)
e4
:
SetCode
(
EFFECT_DISABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
...
@@ -122,12 +121,12 @@ function c41578483.disfilter(c)
...
@@ -122,12 +121,12 @@ function c41578483.disfilter(c)
end
end
function
c41578483
.
distg
(
e
,
c
)
function
c41578483
.
distg
(
e
,
c
)
local
g
=
e
:
GetHandler
():
GetEquipGroup
():
Filter
(
c41578483
.
disfilter
,
nil
)
local
g
=
e
:
GetHandler
():
GetEquipGroup
():
Filter
(
c41578483
.
disfilter
,
nil
)
return
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
c
:
GetCode
())
and
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
return
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
and
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
c
:
GetOriginalCodeRule
()
)
end
end
function
c41578483
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41578483
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetHandler
():
GetEquipGroup
():
Filter
(
c41578483
.
disfilter
,
nil
)
local
g
=
e
:
GetHandler
():
GetEquipGroup
():
Filter
(
c41578483
.
disfilter
,
nil
)
local
code
,
type
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_CODE
,
CHAININFO_TYPE
)
local
rc
=
re
:
GetHandler
(
)
return
type
==
TYPE_MONSTER
and
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
code
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
rc
:
GetOriginalCodeRule
()
)
end
end
function
c41578483
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41578483
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
...
...
constant.lua
View file @
4696f27c
...
@@ -317,7 +317,7 @@ EFFECT_FLAG_COF =0x20000000 --N/A
...
@@ -317,7 +317,7 @@ 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
--卡在发动时效果就立即适用
EFFECT_FLAG2_MILLENNIUM_RESTRICT
=
0x0001
--
卡名為X的卡的效果無效(千年眼納祭神)
EFFECT_FLAG2_MILLENNIUM_RESTRICT
=
0x0001
--
N/A
EFFECT_FLAG2_COF
=
0x0002
--通常魔法卡在MP1以外发动(邪恶的仪式的特殊处理)
EFFECT_FLAG2_COF
=
0x0002
--通常魔法卡在MP1以外发动(邪恶的仪式的特殊处理)
--========== Codes ========== --对永续性效果表示效果类型(EFFECT开头),对诱发型效果表示触发效果的事件/时点(EVENT开头)
--========== Codes ========== --对永续性效果表示效果类型(EFFECT开头),对诱发型效果表示触发效果的事件/时点(EVENT开头)
EFFECT_IMMUNE_EFFECT
=
1
--效果免疫
EFFECT_IMMUNE_EFFECT
=
1
--效果免疫
...
...
utility.lua
View file @
4696f27c
...
@@ -255,16 +255,6 @@ function Auxiliary.EnableUnionAttribute(c,f)
...
@@ -255,16 +255,6 @@ function Auxiliary.EnableUnionAttribute(c,f)
e2
:
SetValue
(
f
)
e2
:
SetValue
(
f
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
Auxiliary
.
ChangeCodeCondition
(
check
,
condition
)
return
function
(
e
)
if
condition
and
not
condition
(
e
)
then
return
false
end
local
le
=
{
e
:
GetHandler
():
IsHasEffect
(
EFFECT_DISABLE
)}
for
_
,
te
in
ipairs
(
le
)
do
if
not
te
:
IsHasProperty
(
0
,
EFFECT_FLAG2_MILLENNIUM_RESTRICT
)
then
return
check
end
end
return
not
check
end
end
function
Auxiliary
.
EnableChangeCode
(
c
,
code
,
location
,
condition
)
function
Auxiliary
.
EnableChangeCode
(
c
,
code
,
location
,
condition
)
Auxiliary
.
AddCodeList
(
c
,
code
)
Auxiliary
.
AddCodeList
(
c
,
code
)
local
loc
=
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
LOCATION_MZONE
or
LOCATION_SZONE
local
loc
=
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
LOCATION_MZONE
or
LOCATION_SZONE
...
@@ -275,13 +265,8 @@ function Auxiliary.EnableChangeCode(c,code,location,condition)
...
@@ -275,13 +265,8 @@ function Auxiliary.EnableChangeCode(c,code,location,condition)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetRange
(
loc
)
e1
:
SetRange
(
loc
)
e1
:
SetValue
(
code
)
e1
:
SetValue
(
code
)
e1
:
SetCondition
(
Auxiliary
.
ChangeCodeCondition
(
true
,
condition
))
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
return
e1
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCondition
(
Auxiliary
.
ChangeCodeCondition
(
false
,
condition
))
c
:
RegisterEffect
(
e2
)
return
e1
,
e2
end
end
function
Auxiliary
.
TargetEqualFunction
(
f
,
value
,
...
)
function
Auxiliary
.
TargetEqualFunction
(
f
,
value
,
...
)
local
ext_params
=
{
...
}
local
ext_params
=
{
...
}
...
...
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