diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-01-16 20:49:39 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2018-01-16 20:51:07 -0300 |
commit | ccf0807be0974dfb8080cb2fc6ea616cc96f062c (patch) | |
tree | 2b59a7eb984b942946420e9b758ad88c4884c3c7 /src | |
parent | 0b09e9ee4eff6e6c6101dd3b5a6880ae768691d6 (diff) |
Core/Unit: check remaining instead of full duration for Bounced by DR auras
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 9917645b02a..b201f0ea7ca 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -4784,7 +4784,7 @@ bool Unit::HasStrongerAuraWithDR(SpellInfo const* auraSpellInfo, Unit* caster, b if (spellInfo->GetDiminishingReturnsGroupForSpell(triggered) != diminishGroup) continue; - int32 existingDuration = itr->second->GetBase()->GetMaxDuration(); + int32 existingDuration = itr->second->GetBase()->GetDuration(); int32 newDuration = auraSpellInfo->GetMaxDuration(); ApplyDiminishingToDuration(auraSpellInfo, triggered, newDuration, caster, level); if (newDuration > 0 && newDuration < existingDuration) |