Commit c34c65ea97d875893cc8cd52420a03837f0f1f95

Authored by dg
1 parent 3ced5b28

Can not be stuck on tannen tower

Positive energy is magic!


git-svn-id: http://svn.net-core.org/repos/t-engine4@1993 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -75,7 +75,7 @@ else
75 75 end
76 76
77 77 -- Zigur is only know from the start to non casters
78   -if not game.player:knowTalent(game.player.T_MANA_POOL) and not game.player:knowTalent(game.player.T_VIM_POOL) and not game.player:knowTalent(game.player.T_VIM_POOL) and not game.player:knowTalent(game.player.T_NEGATIVE_POOL) then
  78 +if not game.player:knowTalent(game.player.T_MANA_POOL) and not game.player:knowTalent(game.player.T_VIM_POOL) and not game.player:knowTalent(game.player.T_VIM_POOL) and not game.player:knowTalent(game.player.T_NEGATIVE_POOL) and not game.player:knowTalent(game.player.T_POSITIVE_POOL) then
79 79 quickEntity('zigur', {always_remember = true, show_tooltip=true, name="Zigur (Town)", desc="Ziguranth main training ground", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-zigur"})
80 80 else
81 81 quickEntity('zigur', ')')
... ...
... ... @@ -55,7 +55,8 @@ addData{post_process = function(level)
55 55 a.on_die = function(self, who)
56 56 local nb = 0
57 57 for uid, a in pairs(game.level.entities) do
58   - if a.faction and game.player:reactionToward(a) < 0 and not a.dead then nb = nb + 1 end
  58 + local ga = game.level.map(a.x, a.y, engine.Map.ACTOR)
  59 + if a.faction and game.player:reactionToward(a) < 0 and ga and ga == a and not a.dead then nb = nb + 1 end
59 60 end
60 61 if nb <= 0 then game.level.open_doors() end
61 62 a:check("old_on_die")
... ...