Correct usage of basePoints in various locations

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-25 03:21:22 +03:00
parent b940a92415
commit d3c6edeb4a
6 changed files with 21 additions and 19 deletions
+2 -1
View File
@@ -27,6 +27,7 @@
#include "ObjectAccessor.h"
#include "UnitEvents.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
//==============================================================
//================= ThreatCalcHelper ===========================
@@ -387,7 +388,7 @@ void ThreatManager::addThreat(Unit* pVictim, float fThreat, SpellSchoolMask scho
Unit *unit = pVictim->GetMisdirectionTarget();
if (unit)
if (Aura* pAura = unit->GetAura(63326)) // Glyph of Vigilance
reducedThreadPercent += pAura->GetSpellProto()->EffectBasePoints[0];
reducedThreadPercent += SpellMgr::CalculateSpellEffectAmount(pAura->GetSpellProto(), 0);
float reducedThreat = threat * reducedThreadPercent / 100;
threat -= reducedThreat;