Skip to content
Snippets Groups Projects
Commit a8ddd4f7 authored by DarkGod's avatar DarkGod
Browse files

Voidstalker cloaks correctly work only on foes

parent 014dcd18
No related branches found
No related tags found
No related merge requests found
......@@ -428,6 +428,7 @@ newEntity{
local _ _, x, y = who:canProject(tg, x, y)
local target = game.level.map(x, y, engine.Map.ACTOR)
if not target then return end
if who:reactionToward(target) >= 0 then return end
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
who:teleportRandom(target.x, target.y, 2)
......
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