diff options
author | QAston <none@none> | 2009-03-22 16:53:56 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-22 16:53:56 +0100 |
commit | df553a98dd221b212189769627ce28f27a662aca (patch) | |
tree | 55b4053f2d7db5ecc94b4ba0f23218ab4e9d61c1 /src/game/Unit.cpp | |
parent | a0530658ff452996cc56126d972f97b9a515559d (diff) |
*Fix a crash in latest rev.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index ea9190335ad..ba88aa1cde3 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4160,7 +4160,7 @@ void Unit::SetAurasDurationByCasterSpell(uint32 spellId, uint64 casterGUID, int3 { if(itr->second->GetCasterGUID()==casterGUID) { - itr->second->SetAuraDuration(duration); + itr->second->SetAuraDurationAndUpdate(duration); break; } } @@ -6027,7 +6027,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu if( spellProto->SpellFamilyName == SPELLFAMILY_ROGUE && spellProto->SpellFamilyFlags[0] & 0x40000) { - RefreshAurasByCasterSpell(spellProto->Id, GetGUID()); + SetAurasDurationByCasterSpell(spellProto->Id, GetGUID(), GetSpellMaxDuration(spellProto)); return true; } } |