Commit 56533513b4cc6370fe8caf0ffd896ebb11a53c43

Authored by DarkGod
2 parents 294e777b f521ad5b

Merge branch 'feed-strength-fix' into 'master'

Feed and Fed Upon properly ignore absolute resistance.

Feed and Fed Upon properly ignore absolute resistance.

See merge request !737
... ... @@ -3847,7 +3847,7 @@ newEffect{
3847 3847 if eff.resistGain and eff.resistGain > 0 then
3848 3848 local gainList = {}
3849 3849 for id, resist in pairs(eff.target.resists) do
3850   - if resist > 0 and id ~= "all" then
  3850 + if resist > 0 and id ~= "all" and id ~= "absolute" then
3851 3851 gainList[id] = eff.resistGain * 0.01 * resist
3852 3852 end
3853 3853 end
... ... @@ -3940,7 +3940,7 @@ newEffect{
3940 3940 if eff.resistLoss and eff.resistLoss < 0 then
3941 3941 local lossList = {}
3942 3942 for id, resist in pairs(self.resists) do
3943   - if resist > 0 and id ~= "all" then
  3943 + if resist > 0 and id ~= "all" and id ~= "absolute" then
3944 3944 lossList[id] = eff.resistLoss * 0.01 * resist
3945 3945 end
3946 3946 end
... ...