Commit ba5001db461788d9911bdd136cb8dad93168ba68

Authored by DarkGod
1 parent d1279b38

Dark Empathy now also transfers the caster's resists cap

... ... @@ -133,6 +133,9 @@ function applyDarkEmpathy(self, m)
133 133 for k, e in pairs(self.resists) do
134 134 m.resists[k] = (m.resists[k] or 0) + e * perc / 100
135 135 end
  136 + for k, e in pairs(self.resists_cap) do
  137 + m.resists_cap[k] = e
  138 + end
136 139 m.combat_physresist = m.combat_physresist + self:combatPhysicalResist() * perc / 100
137 140 m.combat_spellresist = m.combat_spellresist + self:combatSpellResist() * perc / 100
138 141 m.combat_mentalresist = m.combat_mentalresist + self:combatMentalResist() * perc / 100
... ...