diff --git a/game/modules/tome/data/talents/cunning/traps.lua b/game/modules/tome/data/talents/cunning/traps.lua index cdb5f53cb510e34b861d4032f1b66705eb2789e6..881f45ff9f16f0ff1ca90341f8bf1a6814b1e99a 100644 --- a/game/modules/tome/data/talents/cunning/traps.lua +++ b/game/modules/tome/data/talents/cunning/traps.lua @@ -648,6 +648,7 @@ newTalent{ if not x or not y then return nil end local _ _, x, y = self:canProject(tg, x, y) if game.level.map(x, y, Map.TRAP) then game.logPlayer(self, "You somehow fail to set the trap.") return nil end + if game.level.map:checkEntity(x, y, Map.TERRAIN, "block_move") then game.logPlayer(self, "You somehow fail to set the trap.") return nil end local dam = t.getDamage(self, t) -- Need to pass the actor in to the triggered function for the apply_power to work correctly diff --git a/game/modules/tome/data/talents/spells/aether.lua b/game/modules/tome/data/talents/spells/aether.lua index e7e152f578c3baa651b2deab65bc5ad8826edd08..a783f57458212696035e626b1a0815b5761dfcbf 100644 --- a/game/modules/tome/data/talents/spells/aether.lua +++ b/game/modules/tome/data/talents/spells/aether.lua @@ -62,6 +62,7 @@ newTalent{ if not x or not y then return nil end local _ _, x, y = self:canProject(tg, x, y) if game.level.map(x, y, Map.TRAP) then game.logPlayer(self, "You somehow fail to set the aether beam.") return nil end + if game.level.map:checkEntity(x, y, Map.TERRAIN, "block_move") then game.logPlayer(self, "You somehow fail to set the aether beam.") return nil end local t = basetrap(self, t, x, y, 44, { type = "aether", name = "aether beam", color=colors.VIOLET, image = "trap/trap_glyph_explosion_01_64.png",