Skip to content
Snippets Groups Projects
Commit 3384fc1f authored by dg's avatar dg
Browse files

Dominant Will can not take control of dead creatures

git-svn-id: http://svn.net-core.org/repos/t-engine4@3509 51575b47-30f0-44d4-a5cc-537603b46e54
parent 70b9240e
No related branches found
No related tags found
No related merge requests found
......@@ -652,7 +652,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 then return end
if not target or target.dead then return end
if not target:canBe("instakill") or target.rank > 2 or target.undead or not target:checkHit(self:getWil(20) + 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