Skip to content
Snippets Groups Projects
Commit 96cb8239 authored by DarkGod's avatar DarkGod
Browse files

new vim_on_melee

parent 5d916d68
No related branches found
No related tags found
No related merge requests found
......@@ -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): ")
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment