Commit c399d6fbe8ace4e4ba821af6ee2d0a9ccb3d8c2c

Authored by DarkGod
2 parents 61031df5 9af66d00

Merge branch 'fix-shadow-fade' into 'master'

Shadow Fade Fix

Fix Shadows not Fading once they are immune to their summoner's damage

In 083e3474 shadows were updated to not try to fade if they were being hit by their master who they are immune to.  But it was done incorrectly and Shadows of level 5+ lost the ability to fade at all.

See merge request !732
... ... @@ -316,7 +316,7 @@ local function createShadow(self, level, tCallShadows, tShadowWarriors, tShadowM
316 316 value = value * self.avoid_master_damage
317 317 end
318 318
319   - if self:knowTalent(self.T_SHADOW_FADE) and not self:isTalentCoolingDown(self.T_SHADOW_FADE) and not (self.avoid_master_damage == 0) then
  319 + if self:knowTalent(self.T_SHADOW_FADE) and not self:isTalentCoolingDown(self.T_SHADOW_FADE) and (value > 0) then
320 320 self:forceUseTalent(self.T_SHADOW_FADE, {ignore_energy=true})
321 321 end
322 322
... ...
... ... @@ -292,7 +292,7 @@ local function createLichShadow(self, level, tCallShadows, tShadowWarriors, tSha
292 292 value = value * self.avoid_master_damage
293 293 end
294 294
295   - if self:knowTalent(self.T_SHADOW_FADE) and not self:isTalentCoolingDown(self.T_SHADOW_FADE) and not (self.avoid_master_damage == 0) then
  295 + if self:knowTalent(self.T_SHADOW_FADE) and not self:isTalentCoolingDown(self.T_SHADOW_FADE) and (value > 0) then
296 296 self:forceUseTalent(self.T_SHADOW_FADE, {ignore_energy=true})
297 297 end
298 298
... ...