diff options
author | silinoron <none@none> | 2010-08-23 15:10:27 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-08-23 15:10:27 -0700 |
commit | c09528a6bf1cee9dbbf45bfd564f52a3a4e4a1b7 (patch) | |
tree | b814dc00e3c24f5b176782e8f73f55bf813dee24 /src | |
parent | 16910651625c388b25a63c3b0a5c59b1cc54cca8 (diff) |
Fix spellstealing durations when duration of stolen buff is infinite.
Based on patch by Toni.Shocker.
Fixes issue #3550
Fixes issue #3017
--HG--
branch : trunk
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 dea6026613d..bb91a4852bb 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -4253,7 +4253,7 @@ void Unit::RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit } else { - int32 dur = 2*MINUTE*IN_MILLISECONDS < aura->GetDuration() ? 2*MINUTE*IN_MILLISECONDS : aura->GetDuration(); + int32 dur = (2*MINUTE*IN_MILLISECONDS < aura->GetDuration() || aura->GetDuration() < 0) ? 2*MINUTE*IN_MILLISECONDS : aura->GetDuration(); newAura = Aura::TryCreate(aura->GetSpellProto(), effMask, stealer, NULL, &baseDamage[0], NULL, aura->GetCasterGUID()); if (!newAura) |