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

Yeeks can not dominate themselves

parent 9f572567
No related branches found
No related tags found
No related merge requests found
......@@ -733,7 +733,7 @@ newTalent{
if not x or not y then return nil end
self:project(tg, x, y, function(px, py)
local target = game.level.map(px, py, Map.ACTOR)
if not target or target.dead then return end
if not target or target.dead or target == self then return end
if not target:canBe("instakill") or target.rank > 2 or target:attr("undead") or not target:checkHit(self:getWil(20, true) + self.level * 1.5, target.level) then
game.logSeen(target, "%s resists the mental assault!", target.name:capitalize())
return
......
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