diff --git a/game/modules/tome/data/general/npcs/horror.lua b/game/modules/tome/data/general/npcs/horror.lua index b0e94b618ca20e9acd17c8d2c94c8167f36ccecd..9687bfd8c9366e3f72d6369eee773a94a0f9a42b 100644 --- a/game/modules/tome/data/general/npcs/horror.lua +++ b/game/modules/tome/data/general/npcs/horror.lua @@ -277,7 +277,7 @@ newEntity{ base = "BASE_NPC_HORROR", define_as = "BASE_NPC_ELDRICTH_EYE", game.logSeen(self, "#AQUAMARINE#As %s falls %s seems to weaken!", self.name, self.summoner.name) local damtype = next(self.resists) self.summoner.resists.all = (self.summoner.resists.all or 0) - 30 - self.summoner[damtype] = nil + self.summoner.resists[damtype] = nil -- Blind the main horror if no more eyes local nb = 0 diff --git a/game/modules/tome/data/zones/sandworm-lair/objects.lua b/game/modules/tome/data/zones/sandworm-lair/objects.lua index 022792d2d8980030a803e2cfcb6e574c388a619b..4038337c1f8b6f1030539f865689606455d06b34 100644 --- a/game/modules/tome/data/zones/sandworm-lair/objects.lua +++ b/game/modules/tome/data/zones/sandworm-lair/objects.lua @@ -47,17 +47,19 @@ newEntity{ game.logPlayer(who, "You have %d class talent point(s) to spend. Press G to use them.", who.unused_talents) game.logPlayer(who, "You have %d generic talent point(s) to spend. Press G to use them.", who.unused_generics) - if who:knowTalentType("wild-gift/harmony") then - who:setTalentTypeMastery("wild-gift/harmony", who:getTalentTypeMastery("wild-gift/harmony") + 0.1) - elseif who:knowTalentType("wild-gift/harmony") == false and not who:attr("forbid_nature") then - who:learnTalentType("wild-gift/harmony", true) - elseif not who:attr("forbid_nature") then - who:learnTalentType("wild-gift/harmony", false) + if not who:attr("forbid_nature") then + if who:knowTalentType("wild-gift/harmony") then + who:setTalentTypeMastery("wild-gift/harmony", who:getTalentTypeMastery("wild-gift/harmony") + 0.1) + elseif who:knowTalentType("wild-gift/harmony") == false then + who:learnTalentType("wild-gift/harmony", true) + else + who:learnTalentType("wild-gift/harmony", false) + end + -- Make sure a previous amulet didnt bug it out + if who:getTalentTypeMastery("wild-gift/harmony") == 0 then who:setTalentTypeMastery("wild-gift/harmony", 1) end + game.logPlayer(who, "You are transformed by the heart of the Queen!.") + game.logPlayer(who, "#00FF00#You gain an affinity for nature. You can now learn new Harmony talents (press G).") end - -- Make sure a previous amulet didnt bug it out - if who:getTalentTypeMastery("wild-gift/harmony") == 0 then who:setTalentTypeMastery("wild-gift/harmony", 1) end - game.logPlayer(who, "You are transformed by the heart of the Queen!.") - game.logPlayer(who, "#00FF00#You gain an affinity for nature. You can now learn new Harmony talents (press G).") game:setAllowedBuild("wilder_wyrmic", true)