Commit 2286318ec263b03fcf8b02ba14e83d0bfcf4f086

Authored by DarkGod
1 parent 85df3299

Fixed necrotic minions killing things to correctly give souls to the summoner

... ... @@ -51,8 +51,9 @@ newTalent{
51 51 if src.turn_procs.soul_leeched_death then return end
52 52 src.turn_procs.soul_leeched_death = true
53 53 end
54   - self:incSoul(1)
55   - self:triggerHook{"Necromancer:SoulLeech:GainSoul", src=src}
  54 + local summoner = self:resolveSource()
  55 + summoner:incSoul(1)
  56 + summoner:triggerHook{"Necromancer:SoulLeech:GainSoul", src=src}
56 57 end,
57 58 info = function(self, t)
58 59 local _, c_rare = self:textRank(3.2)
... ...
... ... @@ -37,6 +37,9 @@ newTalent{
37 37
38 38 return true
39 39 end,
  40 + incFormula = function(nb)
  41 + return 1 + math.log10(nb) * 1.5
  42 + end,
40 43 action = function(self, t)
41 44 local tg = self:getTalentTarget(t)
42 45 local x, y = self:getTarget(tg)
... ... @@ -45,7 +48,7 @@ newTalent{
45 48 self:projectApply(tg, x, y, Map.ACTOR, function(target)
46 49 local nb = #target:effectsFilter({status="detrimental", ignore_crosstier=true}, 999)
47 50 if nb == 0 then return end
48   - local mult = 1 + math.log10(nb) * 1.5
  51 + local mult = t.incFormula(nb)
49 52 local dam = self:spellCrit(mult * t:_getDamage(self))
50 53 if DamageType:get(DamageType.FROSTDUSK).projector(self, target.x, target.y, DamageType.FROSTDUSK, dam) > 0 then
51 54 if target:canBe("slow") then
... ... @@ -59,9 +62,17 @@ newTalent{
59 62 return true
60 63 end,
61 64 info = function(self, t)
  65 + local dam = damDesc(self, DamageType.FROSTDUSK, t:_getDamage(self))
62 66 return ([[Press your advantage when your foes are starting to crumble.
63 67 For every detrimental effect on the target you deals %0.2f frostdusk damage (with diminishing returns) and reduce its global speed by 25%% for one turn per effect (up to a maximum of %d).
64   - ]]):tformat(damDesc(self, DamageType.FROSTDUSK, t:_getDamage(self)), t:_getMax(self))
  68 + The diminishing returns on damage bonus works this way:
  69 + - 2 effects: %0.2f
  70 + - 5 effects: %0.2f
  71 + - 10 effects: %0.2f
  72 + - 15 effects: %0.2f
  73 + And so on...
  74 + Damage increases with your Spellpower.
  75 + ]]):tformat(dam, t:_getMax(self), dam*t.incFormula(2), dam*t.incFormula(5), dam*t.incFormula(10), dam*t.incFormula(15))
65 76 end,
66 77 }
67 78
... ...
... ... @@ -73,7 +73,7 @@ newTalent{
73 73 info = function(self, t)
74 74 local range = self:getTalentRange(t)
75 75 return ([[Taking on a spectral form, you teleport to the target tile within range %d.
76   - For 3 turns after using this spell, you gain the ability to teleport back to your original tile as long as you are within range of it.]]):tformat(range)
  76 + For 3 turns after using this spell, you gain the ability to instantly teleport back to your original tile as long as you are within range of it.]]):tformat(range)
77 77 end,
78 78 }
79 79
... ...