diff --git a/game/modules/tome/data/talents/gifts/antimagic.lua b/game/modules/tome/data/talents/gifts/antimagic.lua index b4a54cb69d254632d88ee1d0d2abaef98d4463d4..3e579f13e089bec3152447aae1a94b11269b40eb 100644 --- a/game/modules/tome/data/talents/gifts/antimagic.lua +++ b/game/modules/tome/data/talents/gifts/antimagic.lua @@ -81,6 +81,13 @@ newTalent{ cooldown = 20, range = 10, tactical = { DEFEND = 2 }, + getMax = function(self, t) + local v = self:combatTalentMindDamage(t, 20, 80) + if self:knowtTalent(self.T_TRICKY_DEFENSES) then + v = v * (100 + self:getCun() / 2) / 100 + end + return v + end, on_damage = function(self, t, damtype, dam) if not DamageType:get(damtype).antimagic_resolve then return dam end @@ -101,7 +108,7 @@ newTalent{ activate = function(self, t) game:playSoundNear(self, "talents/heal") return { - am = self:addTemporaryValue("antimagic_shield", self:combatTalentMindDamage(t, 20, 80)), + am = self:addTemporaryValue("antimagic_shield", t.getMax(self, t)), } end, deactivate = function(self, t, p) @@ -112,7 +119,7 @@ newTalent{ return ([[Surround yourself with a shield that will absorb at most %d magical or elemental damage per attack. Each time damage is absorbed your equilibrium increases by 1 for every 30 points of damage and a check is made, if it fails the shield will crumble. Damage shield can absorb will increase with your Mindpower.]]): - format(self:combatTalentMindDamage(t, 20, 80)) + format(t.getMax(self, t)) end, } diff --git a/game/modules/tome/data/talents/uber/cun.lua b/game/modules/tome/data/talents/uber/cun.lua index 535ae3b974b221101f45d0be5fcc46d36fc5adf9..c9423d9385d18fe79418842f114601d3d9779f18 100644 --- a/game/modules/tome/data/talents/uber/cun.lua +++ b/game/modules/tome/data/talents/uber/cun.lua @@ -66,3 +66,14 @@ uberTalent{ :format() end, } + +uberTalent{ + name = "Tricky Defenses", + mode = "passive", + require = { special={desc="Antimagic", fct=function(self) return self:knowTalentType("wild-gift/antimagic") end} }, + info = function(self, t) + return ([[You are full of tricks and surprises, your Antimagic Shield can absorb %d%% more damage. + The increase scales with Cunning.]]) + :format(self:getCun() / 2) + end, +} diff --git a/game/modules/tome/data/talents/uber/dex.lua b/game/modules/tome/data/talents/uber/dex.lua index 0399bccf434840621f3cfed1149ebca57dfd629a..45b45bc9ee3b0728d607b98b85d28871c4c54b7e 100644 --- a/game/modules/tome/data/talents/uber/dex.lua +++ b/game/modules/tome/data/talents/uber/dex.lua @@ -83,3 +83,22 @@ uberTalent{ :format() end, } + +uberTalent{ + name = "Windtouched Speed", + mode = "passive", + require = { special={desc="Know at least 20 talent levels of equilibrium using talents.", fct=function(self) return knowRessource(self, "equilibrium", 20) end} }, + on_learn = function(self, t) + self:attr("global_speed_add", 0.15) + self:attr("avoid_pressure_traps", 1) + end, + on_unlearn = function(self, t) + self:attr("global_speed_add", -0.15) + self:attr("avoid_pressure_traps", -1) + end, + info = function(self, t) + return ([[You are attuned wih Nature and she helps you in your fight against the arcane forces. + You gain 15%% permanent global speed and avoidance of pressure traps.]]) + :format() + end, +}