*Simply some writing of array pointer in aura functions.
--HG-- branch : trunk
This commit is contained in:
@@ -410,8 +410,8 @@ m_auraSlot(MAX_AURAS), m_auraLevel(1), m_procCharges(0), m_stackAmount(1),m_aura
|
|||||||
{
|
{
|
||||||
if (m_auraFlags & (uint8(1) << i))
|
if (m_auraFlags & (uint8(1) << i))
|
||||||
{
|
{
|
||||||
if (¤tBasePoints[0])
|
if (currentBasePoints)
|
||||||
m_partAuras[i]=CreateAuraEffect(this, i,¤tBasePoints[0]+i, caster, NULL, formalCaster);
|
m_partAuras[i]=CreateAuraEffect(this, i,¤tBasePoints[i], caster, NULL, formalCaster);
|
||||||
else
|
else
|
||||||
m_partAuras[i]=CreateAuraEffect(this, i, NULL , caster, NULL, formalCaster);
|
m_partAuras[i]=CreateAuraEffect(this, i, NULL , caster, NULL, formalCaster);
|
||||||
// correct flags if aura couldn't be created
|
// correct flags if aura couldn't be created
|
||||||
|
|||||||
+3
-5
@@ -13595,18 +13595,16 @@ Aura * Unit::AddAuraEffect(uint32 spellId, uint8 effIndex, Unit* caster, int32 *
|
|||||||
if (aur)
|
if (aur)
|
||||||
{
|
{
|
||||||
AuraEffect *aurEffect = CreateAuraEffect(aur, effIndex, basePoints, caster);
|
AuraEffect *aurEffect = CreateAuraEffect(aur, effIndex, basePoints, caster);
|
||||||
if (!aurEffect)
|
if (aurEffect && !aur->SetPartAura(aurEffect, effIndex))
|
||||||
return aur;
|
|
||||||
if (!aur->SetPartAura(aurEffect, effIndex))
|
|
||||||
delete aurEffect;
|
delete aurEffect;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (basePoints)
|
if (basePoints)
|
||||||
{
|
{
|
||||||
int32 amount [3];
|
int32 amount[3];
|
||||||
amount[effIndex] = *basePoints;
|
amount[effIndex] = *basePoints;
|
||||||
aur = new Aura(spellInfo, 1<<effIndex, &amount[0], this ,caster);
|
aur = new Aura(spellInfo, 1<<effIndex, amount, this ,caster);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user