aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortobmaps <spambot42@yandex.ru>2011-06-19 23:08:41 +0700
committertobmaps <spambot42@yandex.ru>2011-06-19 23:08:41 +0700
commit6c3334751127c701c1b189b1bcec78b01dcb55ff (patch)
treee3bcc6acdd905255fc8f7c995a3d0a98ca3293d3 /src
parent50a716e031a58b1ad23f5884729c2dce8e4ddfa2 (diff)
Core/Spells: Set a MaxDuration of spellstolen aura to the original aura MaxDuration
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 7fe2e4de9d7..6d3a4fb2ab1 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -3807,7 +3807,8 @@ void Unit::RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit
aura->SetIsSingleTarget(true);
caster->GetSingleCastAuras().push_back(aura);
}
- newAura->SetLoadedState(dur, dur, stealCharge ? 1 : aura->GetCharges(), 1, recalculateMask, &damage[0]);
+ // FIXME: using aura->GetMaxDuration() maybe not blizzlike but it fixes stealing of spells like Innervate
+ newAura->SetLoadedState(aura->GetMaxDuration(), dur, stealCharge ? 1 : aura->GetCharges(), 1, recalculateMask, &damage[0]);
newAura->ApplyForTargets();
}
}