diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index a1dec0437ef229eecf7a75517c58470d8ec96479..f5a80dff3cc4341b38b4609ed5932e84456a8893 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -3018,7 +3018,7 @@ function _M:preUseTalent(ab, silent, fake) return true end ---- Called before a talent is used +--- Called after a talent is used -- Check if it must use a turn, mana, stamina, ... -- @param ab the talent (not the id, the table) -- @param ret the return of the talent action @@ -3183,9 +3183,11 @@ end function _M:forceUseTalent(t, def) if def.no_equilibrium_fail then self:attr("no_equilibrium_fail", 1) end if def.no_paradox_fail then self:attr("no_paradox_fail", 1) end + if def.talent_reuse then self:attr("talent_reuse", 1) end local ret = {engine.interface.ActorTalents.forceUseTalent(self, t, def)} if def.no_equilibrium_fail then self:attr("no_equilibrium_fail", -1) end if def.no_paradox_fail then self:attr("no_paradox_fail", -1) end + if def.talent_reuse then self:attr("talent_reuse", -1) end return unpack(ret) end diff --git a/game/modules/tome/data/talents/celestial/hymns.lua b/game/modules/tome/data/talents/celestial/hymns.lua index 6ca9ca4a9be720a9506cad5af2f66f23ecc6e242..b6a26637f981a6c76acca54c96a79beaa8c0ca3f 100644 --- a/game/modules/tome/data/talents/celestial/hymns.lua +++ b/game/modules/tome/data/talents/celestial/hymns.lua @@ -157,7 +157,7 @@ newTalent{ return ([[Chant the glory of the moon, granting you %d%% stun, blindness and confusion resistances. In addition it surrounds you with a shield of darkness, damaging anything that attacks you for %0.2f darkness damage. You may only have one Hymn active at once. - The resistances and damage will increase with the Magic stat]]): + The damage will increase with the Magic stat]]): format(100 * (immunities), damDesc(self, DamageType.DARKNESS, darknessdamage)) end, } diff --git a/game/modules/tome/dialogs/LevelupDialog.lua b/game/modules/tome/dialogs/LevelupDialog.lua index 8b3d2893dbfae5b6a3854301db6477b21038c4e7..5d5fe7562d4a66abce1fb7776de76bb738ee20ae 100644 --- a/game/modules/tome/dialogs/LevelupDialog.lua +++ b/game/modules/tome/dialogs/LevelupDialog.lua @@ -482,7 +482,7 @@ function _M:finish() end for i, tid in ipairs(reset) do self.actor:forceUseTalent(tid, {ignore_energy=true, ignore_cd=true, no_equilibrium_fail=true, no_paradox_fail=true}) - if self.actor:knowTalent(tid) then self.actor:forceUseTalent(tid, {ignore_energy=true, ignore_cd=true, no_equilibrium_fail=true, no_paradox_fail=true}) end + if self.actor:knowTalent(tid) then self.actor:forceUseTalent(tid, {ignore_energy=true, ignore_cd=true, no_equilibrium_fail=true, no_paradox_fail=true, talent_reuse=true}) end end if not self.on_birth then