Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K'van
Tales of MajEyal
Commits
26a85c19
Commit
26a85c19
authored
10 years ago
by
Alex Ksandra
Browse files
Options
Downloads
Patches
Plain Diff
Added a bit more checks to removeEffectsFilter and made it more concise.
parent
79a919e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/Actor.lua
+12
-2
12 additions, 2 deletions
game/modules/tome/class/Actor.lua
with
12 additions
and
2 deletions
game/modules/tome/class/Actor.lua
+
12
−
2
View file @
26a85c19
...
...
@@ -5522,8 +5522,18 @@ function _M:removeEffectsFilter(t, nb, silent, force)
local
e
=
self
.
tempeffect_def
[
eff_id
]
if
type
(
t
)
==
"function"
then
if
t
(
e
)
then
effs
[
#
effs
+
1
]
=
eff_id
end
elseif
(
not
t
.
type
or
t
.
type
==
e
.
type
)
and
(
not
t
.
status
or
e
.
status
==
t
.
status
)
and
(
not
t
.
ignore_crosstier
or
not
e
.
subtype
[
"cross tier"
])
then
effs
[
#
effs
+
1
]
=
eff_id
else
local
test
=
true
test
=
(
not
t
.
ignore_crosstier
or
not
e
.
subtype
[
"cross tier"
])
test
=
test
and
(
not
t
.
type
or
t
.
type
==
e
.
type
)
test
=
test
and
(
not
t
.
types
or
t
.
types
[
e
.
type
])
if
t
.
subtype
then
local
valid
=
false
for
k
,
_
in
pairs
(
t
.
subtype
)
do
valid
=
valid
or
e
.
subtype
[
k
]
end
test
=
test
and
valid
end
test
=
test
and
(
not
t
.
status
or
e
.
status
==
t
.
status
)
if
test
then
effs
[
#
effs
+
1
]
=
eff_id
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment