mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[9742] Final cleanup in non proper now EffectBasePoints use.
This commit is contained in:
parent
958edb65f7
commit
ee0089826d
4 changed files with 10 additions and 9 deletions
|
|
@ -384,7 +384,7 @@ m_isRemovedOnShapeLost(true), m_in_use(0), m_deleted(false)
|
|||
|
||||
m_spellProto = spellproto;
|
||||
|
||||
m_currentBasePoints = currentBasePoints ? *currentBasePoints : m_spellProto->EffectBasePoints[eff] + 1;
|
||||
m_currentBasePoints = currentBasePoints ? *currentBasePoints : m_spellProto->CalculateSimpleValue(eff);
|
||||
|
||||
m_isPassive = IsPassiveSpell(GetId());
|
||||
m_positive = IsPositiveEffect(GetId(), m_effIndex);
|
||||
|
|
@ -397,7 +397,7 @@ m_isRemovedOnShapeLost(true), m_in_use(0), m_deleted(false)
|
|||
if(!caster)
|
||||
{
|
||||
m_caster_guid = target->GetGUID();
|
||||
damage = m_currentBasePoints; // stored value-1
|
||||
damage = m_currentBasePoints;
|
||||
m_maxduration = target->CalculateSpellDuration(m_spellProto, m_effIndex, target);
|
||||
}
|
||||
else
|
||||
|
|
@ -818,7 +818,7 @@ void AreaAura::Update(uint32 diff)
|
|||
int32 actualBasePoints = m_currentBasePoints;
|
||||
// recalculate basepoints for lower rank (all AreaAura spell not use custom basepoints?)
|
||||
if(actualSpellInfo != GetSpellProto())
|
||||
actualBasePoints = actualSpellInfo->EffectBasePoints[m_effIndex];
|
||||
actualBasePoints = actualSpellInfo->CalculateSimpleValue(m_effIndex);
|
||||
AreaAura *aur = new AreaAura(actualSpellInfo, m_effIndex, &actualBasePoints, (*tIter), caster, NULL);
|
||||
aur->SetAuraDuration(GetAuraDuration());
|
||||
(*tIter)->AddAura(aur);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue