Showing
4 changed files
with
5 additions
and
4 deletions
... | ... | @@ -26,7 +26,7 @@ local base_chat |
26 | 26 | local function generate_traps() |
27 | 27 | local answers = {{_t"[Cancel]", tier=0}} |
28 | 28 | for i, tid in pairs(trapping_tids) do |
29 | - local t = npc:getTalentFromId(tid) | |
29 | + local t = player:getTalentFromId(tid) | |
30 | 30 | local tier = t.trap_mastery_level |
31 | 31 | local canlearn, unlearnable = player:canLearnTalent(t) |
32 | 32 | if t.allow_primed_trigger and tier <= chat_level then -- trap can be primed | ... | ... |
... | ... | @@ -3600,6 +3600,7 @@ newEffect{ |
3600 | 3600 | on_timeout = function(self, eff) |
3601 | 3601 | local severed = false |
3602 | 3602 | local src = eff.src or self |
3603 | + if src:attr("dead") or not src.x then return end | |
3603 | 3604 | if core.fov.distance(self.x, self.y, src.x, src.y) >= eff.free or src.dead or not game.level:hasEntity(src) then severed = true end |
3604 | 3605 | if rng.percent(eff.free_chance) then severed = true end |
3605 | 3606 | ... | ... |
... | ... | @@ -22,8 +22,8 @@ long_name = "Tales of Maj'Eyal: Age of Ascendancy" |
22 | 22 | short_name = "tome" |
23 | 23 | author = { "DarkGod", "darkgod@te4.org" } |
24 | 24 | homepage = "https://te4.org/" |
25 | -version = {1,7,3} | |
26 | -engine = {1,7,3,"te4"} | |
25 | +version = {1,7,4} | |
26 | +engine = {1,7,4,"te4"} | |
27 | 27 | description = [[ |
28 | 28 | Welcome to Maj'Eyal. |
29 | 29 | ... | ... |
-
Please register or login to post a comment