diff --git a/game/modules/tome/class/Object.lua b/game/modules/tome/class/Object.lua index bf7806671b855bf6349451b175f6c46d6f9cab27..487aedfce1f479804f65a46b5249f4a8db62a396 100644 --- a/game/modules/tome/class/Object.lua +++ b/game/modules/tome/class/Object.lua @@ -1280,6 +1280,8 @@ function _M:getTextualDesc(compare_with, use_actor) compare_fields(w, compare_with, field, "hate_regen_when_hit", "%+.2f", "Hate when hit: ") compare_fields(w, compare_with, field, "vim_regen_when_hit", "%+.2f", "Vim when hit: ") + compare_fields(w, compare_with, field, "vim_on_melee", "%+.2f", "Vim when hitting in melee: ") + compare_fields(w, compare_with, field, "mana_on_crit", "%+.2f", "Mana when firing critical spell: ") compare_fields(w, compare_with, field, "vim_on_crit", "%+.2f", "Vim when firing critical spell: ") compare_fields(w, compare_with, field, "spellsurge_on_crit", "%+d", "Spellpower on spell critical (stacks up to 3 times): ") diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua index bd752a57393e7c4746e62bf90a74db93db37779f..87626d15feaa56abbaf139f903707c38be3b4319 100644 --- a/game/modules/tome/class/interface/Combat.lua +++ b/game/modules/tome/class/interface/Combat.lua @@ -546,6 +546,8 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam) target:fireTalentCheck("callbackOnMeleeHit", self, dam) hitted = true + + if self:attr("vim_on_melee") then self:incVim(self:attr("vim_on_melee")) end else self:logCombat(target, "#Source# misses #Target#.") target:fireTalentCheck("callbackOnMeleeMiss", self, dam)