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
Otowa Kotori
Tales of MajEyal
Commits
6cd965eb
Commit
6cd965eb
authored
4 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Fixed being able to dispel your own debuff during Golden Age of Necromancy
parent
48156e8e
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
+2
-2
2 additions, 2 deletions
game/modules/tome/class/Actor.lua
with
2 additions
and
2 deletions
game/modules/tome/class/Actor.lua
+
2
−
2
View file @
6cd965eb
...
@@ -7212,8 +7212,6 @@ end
...
@@ -7212,8 +7212,6 @@ end
-- @param src who is doing the dispelling
-- @param src who is doing the dispelling
-- @param allow_immunity If true will check for canBe("dispel_XXX"), defaults to true
-- @param allow_immunity If true will check for canBe("dispel_XXX"), defaults to true
function
_M
:
dispel
(
effid_or_tid
,
src
,
allow_immunity
,
params
)
function
_M
:
dispel
(
effid_or_tid
,
src
,
allow_immunity
,
params
)
if
allow_immunity
and
self
:
attr
(
"invulnerable"
)
then
return
end
if
not
params
then
params
=
{}
end
if
not
params
then
params
=
{}
end
if
params
.
silent
==
nil
then
params
.
silent
=
false
end
if
params
.
silent
==
nil
then
params
.
silent
=
false
end
if
params
.
force
==
nil
then
params
.
force
=
false
end
if
params
.
force
==
nil
then
params
.
force
=
false
end
...
@@ -7224,6 +7222,8 @@ function _M:dispel(effid_or_tid, src, allow_immunity, params)
...
@@ -7224,6 +7222,8 @@ function _M:dispel(effid_or_tid, src, allow_immunity, params)
-- Dont resist yourself!
-- Dont resist yourself!
if
src
==
self
then
allow_immunity
=
false
end
if
src
==
self
then
allow_immunity
=
false
end
if
allow_immunity
and
self
:
attr
(
"invulnerable"
)
then
return
end
-- Effect
-- Effect
if
effid_or_tid
:
find
(
"^EFF_"
)
then
if
effid_or_tid
:
find
(
"^EFF_"
)
then
local
eff
=
self
:
getEffectFromId
(
effid_or_tid
)
local
eff
=
self
:
getEffectFromId
(
effid_or_tid
)
...
...
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