Skip to content
Snippets Groups Projects
Commit 873cc00f authored by dg's avatar dg
Browse files

Fixed thought form reloading

git-svn-id: http://svn.net-core.org/repos/t-engine4@5545 51575b47-30f0-44d4-a5cc-537603b46e54
parent 132237a0
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ newTalent{
if game.player == self then
local tg = {type="ball", radius=10}
self:project(tg, self.x, self.y, function(tx, ty)
local target = game.level.map(tx, ty, Map.ACTOR)
local target = game.level.map(tx, ty, engine.Map.ACTOR)
if target and target.ai_target.actor == self then
target:setTarget(self.summoner)
end
......@@ -101,7 +101,7 @@ newTalent{
end
if game.level:hasEntity(self.summoner) and core.fov.distance(self.x, self.y, self.summoner.x, self.summoner.y) > self.summoner:getTalentRange(t) then
local Map = require "engine.Map"
local x, y = util.findFreeGrid(self.summoner.x, self.summoner.y, 5, true, {[Map.ACTOR]=true})
local x, y = util.findFreeGrid(self.summoner.x, self.summoner.y, 5, true, {[engine.Map.ACTOR]=true})
if not x then
return
end
......@@ -253,7 +253,7 @@ newTalent{
if game.player == self then
local tg = {type="ball", radius=10}
self:project(tg, self.x, self.y, function(tx, ty)
local target = game.level.map(tx, ty, Map.ACTOR)
local target = game.level.map(tx, ty, engine.Map.ACTOR)
if target and target.ai_target.actor == self then
target:setTarget(self.summoner)
end
......@@ -268,7 +268,7 @@ newTalent{
end
if game.level:hasEntity(self.summoner) and core.fov.distance(self.x, self.y, self.summoner.x, self.summoner.y) > self.summoner:getTalentRange(t) then
local Map = require "engine.Map"
local x, y = util.findFreeGrid(self.summoner.x, self.summoner.y, 5, true, {[Map.ACTOR]=true})
local x, y = util.findFreeGrid(self.summoner.x, self.summoner.y, 5, true, {[engine.Map.ACTOR]=true})
if not x then
return
end
......@@ -410,7 +410,7 @@ newTalent{
if game.player == self then
local tg = {type="ball", radius=10}
self:project(tg, self.x, self.y, function(tx, ty)
local target = game.level.map(tx, ty, Map.ACTOR)
local target = game.level.map(tx, ty, engine.Map.ACTOR)
if target and target.ai_target.actor == self then
target:setTarget(self.summoner)
end
......@@ -425,7 +425,7 @@ newTalent{
end
if game.level:hasEntity(self.summoner) and core.fov.distance(self.x, self.y, self.summoner.x, self.summoner.y) > self.summoner:getTalentRange(t) then
local Map = require "engine.Map"
local x, y = util.findFreeGrid(self.summoner.x, self.summoner.y, 5, true, {[Map.ACTOR]=true})
local x, y = util.findFreeGrid(self.summoner.x, self.summoner.y, 5, true, {[engine.Map.ACTOR]=true})
if not x then
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment