Skip to content
Snippets Groups Projects
Commit 5f144d09 authored by dg's avatar dg
Browse files

Telekinetic Core only hits actors once

git-svn-id: http://svn.net-core.org/repos/t-engine4@5839 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0b85057b
No related branches found
No related tags found
No related merge requests found
......@@ -467,10 +467,11 @@ newTalent{
local target = game.level.map(px, py, Map.ACTOR)
if not target then return end
if self:reactionToward(target) < 0 and not tgts[target] then
print("===HIT", target.name)
tgts[target] = true
local ox, oy = target.x, target.y
target:pull(self.x, self.y, 2)
self:project(tg, target.x, target.y, engine.DamageType.PHYSICAL, self:mindCrit(self:combatTalentMindDamage(t, 20, 120)))
self:project({type="hit", range=10, friendlyfire=false, talent=t}, target.x, target.y, engine.DamageType.PHYSICAL, self:mindCrit(self:combatTalentMindDamage(t, 20, 120)))
if target.x ~= ox or target.y ~= oy then game.logSeen(target, "%s is pulled in!", target.name:capitalize()) end
end
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