Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
4a21f2b4
Commit
4a21f2b4
authored
Dec 20, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
955bf549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
expansions/script/special.lua
expansions/script/special.lua
+5
-5
No files found.
expansions/script/special.lua
View file @
4a21f2b4
...
@@ -95,7 +95,7 @@ function Auxiliary.PreloadUds()
...
@@ -95,7 +95,7 @@ function Auxiliary.PreloadUds()
local
_CreateEffect
=
Effect
.
CreateEffect
local
_CreateEffect
=
Effect
.
CreateEffect
function
Effect
.
CreateEffect
(
c
,
...
)
function
Effect
.
CreateEffect
(
c
,
...
)
if
aux
.
GetValueType
(
c
)
~=
"Card"
then
assert
(
false
,
"Effect.CreateEffect没有输入正确的Card参数。"
)
return
end
if
aux
.
GetValueType
(
c
)
~=
"Card"
then
error
(
"Effect.CreateEffect没有输入正确的Card参数。"
,
2
)
return
end
local
e
=
_CreateEffect
(
c
,
...
)
local
e
=
_CreateEffect
(
c
,
...
)
if
e
and
c
then
effect_handler
[
e
]
=
c
end
if
e
and
c
then
effect_handler
[
e
]
=
c
end
return
e
return
e
...
@@ -119,15 +119,15 @@ function Auxiliary.PreloadUds()
...
@@ -119,15 +119,15 @@ function Auxiliary.PreloadUds()
if
table_range
and
table_range
[
e
]
then
if
table_range
and
table_range
[
e
]
then
return
table_range
[
e
]
return
table_range
[
e
]
end
end
Debug
.
Message
(
"Effect.GetRange没有及时加载该效果的Range信息。"
)
error
(
"Effect.GetRange没有及时加载该效果的Range信息。"
,
2
)
return
0
return
0
end
end
end
end
local
_CRegisterEffect
=
Card
.
RegisterEffect
local
_CRegisterEffect
=
Card
.
RegisterEffect
function
Card
.
RegisterEffect
(
c
,
e
,
...
)
function
Card
.
RegisterEffect
(
c
,
e
,
...
)
if
aux
.
GetValueType
(
c
)
~=
"Card"
then
assert
(
false
,
"Card.RegisterEffect没有输入正确的Card参数。"
)
return
end
if
aux
.
GetValueType
(
c
)
~=
"Card"
then
error
(
"Card.RegisterEffect没有输入正确的Card参数。"
,
2
)
return
end
if
aux
.
GetValueType
(
e
)
~=
"Effect"
then
assert
(
false
,
"Card.RegisterEffect没有输入正确的Effect参数。"
)
return
end
if
aux
.
GetValueType
(
e
)
~=
"Effect"
then
error
(
"Card.RegisterEffect没有输入正确的Effect参数。"
,
2
)
return
end
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
table_range
[
e
]
then
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
table_range
[
e
]
then
table_range
[
e
]
=
LOCATION_HAND
+
LOCATION_SZONE
table_range
[
e
]
=
LOCATION_HAND
+
LOCATION_SZONE
elseif
e
:
IsHasType
(
EFFECT_TYPE_EQUIP
)
and
not
table_range
[
e
]
then
elseif
e
:
IsHasType
(
EFFECT_TYPE_EQUIP
)
and
not
table_range
[
e
]
then
...
@@ -143,7 +143,7 @@ function Auxiliary.PreloadUds()
...
@@ -143,7 +143,7 @@ function Auxiliary.PreloadUds()
end
end
local
_DRegisterEffect
=
Duel
.
RegisterEffect
local
_DRegisterEffect
=
Duel
.
RegisterEffect
function
Duel
.
RegisterEffect
(
e
,
p
,
...
)
function
Duel
.
RegisterEffect
(
e
,
p
,
...
)
if
aux
.
GetValueType
(
e
)
~=
"Effect"
then
assert
(
false
,
"Duel.RegisterEffect没有输入正确的Effect参数。"
)
return
end
if
aux
.
GetValueType
(
e
)
~=
"Effect"
then
error
(
"Duel.RegisterEffect没有输入正确的Effect参数。"
,
2
)
return
end
_DRegisterEffect
(
e
,
p
,
...
)
_DRegisterEffect
(
e
,
p
,
...
)
if
e
then
effect_registered
[
e
]
=
true
end
if
e
then
effect_registered
[
e
]
=
true
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