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

Dominatinga headless horror eye will not make the player blind

git-svn-id: http://svn.net-core.org/repos/t-engine4@6439 51575b47-30f0-44d4-a5cc-537603b46e54
parent c95b9562
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,7 @@ newEntity{ base = "BASE_NPC_HORROR",
combat = {damtype=DamageType.PHYSICAL},
no_auto_resists = true,
move_others=true,
is_headless_horror = true,
-- Should get resists based on eyes generated, 30% all per eye and 100% to the eyes element. Should lose said resists when the eyes die.
......@@ -280,7 +281,7 @@ newEntity{ base = "BASE_NPC_HORROR", define_as = "BASE_NPC_ELDRICTH_EYE",
for eye, _ in pairs(self.summoner.eyes or {}) do
if not eye.dead then nb = nb + 1 end
end
if nb == 0 then
if nb == 0 and self.summoner and self.summoner.is_headless_horror then
local sx, sy = game.level.map:getTileToScreen(self.summoner.x, self.summoner.y)
game.flyers:add(sx, sy, 20, (rng.range(0,2)-1) * 0.5, -3, "+Blind", {255,100,80})
self.summoner.blind = 1
......
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