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
4e28328b
Commit
4e28328b
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Fixed self targetting with spells
parent
706ddd22
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/engines/default/engine/interface/GameTargeting.lua
+3
-0
3 additions, 0 deletions
game/engines/default/engine/interface/GameTargeting.lua
with
3 additions
and
0 deletions
game/engines/default/engine/interface/GameTargeting.lua
+
3
−
0
View file @
4e28328b
...
@@ -99,11 +99,13 @@ function _M:targetMode(v, msg, co, typ)
...
@@ -99,11 +99,13 @@ function _M:targetMode(v, msg, co, typ)
self
.
target
:
setActive
(
false
)
self
.
target
:
setActive
(
false
)
if
tostring
(
old
)
==
"exclusive"
then
if
tostring
(
old
)
==
"exclusive"
then
local
x
,
y
,
e
=
self
.
target
.
target
.
x
,
self
.
target
.
target
.
y
,
self
.
target
.
target
.
entity
local
fct
=
function
(
notok
)
local
fct
=
function
(
notok
)
if
notok
then
if
notok
then
self
.
target
.
target
.
entity
=
nil
self
.
target
.
target
.
entity
=
nil
self
.
target
.
target
.
x
=
nil
self
.
target
.
target
.
x
=
nil
self
.
target
.
target
.
y
=
nil
self
.
target
.
target
.
y
=
nil
x
,
y
,
e
=
nil
,
nil
,
nil
end
end
self
.
key
=
self
.
normal_key
self
.
key
=
self
.
normal_key
...
@@ -111,6 +113,7 @@ function _M:targetMode(v, msg, co, typ)
...
@@ -111,6 +113,7 @@ function _M:targetMode(v, msg, co, typ)
if
self
.
target_co
then
if
self
.
target_co
then
local
co
=
self
.
target_co
local
co
=
self
.
target_co
self
.
target_co
=
nil
self
.
target_co
=
nil
self
.
target
.
target
.
x
,
self
.
target
.
target
.
y
,
self
.
target
.
target
.
entity
=
x
,
y
,
e
local
ok
,
err
=
coroutine.resume
(
co
,
self
.
target
.
target
.
x
,
self
.
target
.
target
.
y
,
self
.
target
.
target
.
entity
)
local
ok
,
err
=
coroutine.resume
(
co
,
self
.
target
.
target
.
x
,
self
.
target
.
target
.
y
,
self
.
target
.
target
.
entity
)
if
not
ok
and
err
then
print
(
debug.traceback
(
co
))
error
(
err
)
end
if
not
ok
and
err
then
print
(
debug.traceback
(
co
))
error
(
err
)
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