Commit 01ce59f64d6d6db3796f6186dbe5b67f02261174

Authored by DarkGod
2 parents 44ecaf78 e36a5c28

Merge branch 'fix_talents_mastery_bonus_update_passives' into 'master'

fix Adept & talents_mastery_bonus not updating passives on change

fix talents_mastery_bonus not updating passives on change by wearing/taking off Radiance and Ring of the War Master
fix Adept not updating passives on learn

See merge request !778
... ... @@ -3940,6 +3940,8 @@ function _M:onTemporaryValueChange(prop, v, base)
3940 3940 self:recomputeGlobalSpeed()
3941 3941 elseif base == self.talents_types_mastery then
3942 3942 self:updateTalentTypeMastery(prop)
  3943 + elseif base == self.talents_mastery_bonus then
  3944 + self:updateAllTalentsPassives()
3943 3945 elseif prop == "disarmed" then
3944 3946 self:updateModdableTile()
3945 3947 end
... ...
... ... @@ -506,6 +506,12 @@ uberTalent{
506 506 end,
507 507 passives = function(self, t, p)
508 508 self:talentTemporaryValue(p, "all_talents_bonus_level", 1.5)
  509 +
  510 + if not self._updating_adept then
  511 + self._updating_adept = true
  512 + self:updateAllTalentsPassives()
  513 + self._updating_adept = nil
  514 + end
509 515 end,
510 516 }
511 517
... ...