[12720] This should fix "drink" spells - removed double " return"

This commit is contained in:
sanctum32 2013-11-17 09:09:23 +02:00 committed by Antz
parent 32ff8f89c7
commit 69cb04b8a8
2 changed files with 4 additions and 4 deletions

View file

@ -8417,7 +8417,7 @@ void Aura::PeriodicDummyTick()
target->CastSpell(target, 68873, true);
return;
}
// Exist more after, need add later
// Exist more after, need add later
default:
break;
}
@ -8427,14 +8427,14 @@ void Aura::PeriodicDummyTick()
{
if (target->GetTypeId() != TYPEID_PLAYER)
return;
// Search SPELL_AURA_MOD_POWER_REGEN aura for this spell and add bonus
if (Aura* aura = GetHolder()->GetAuraByEffectIndex(SpellEffectIndex(GetEffIndex() - 1)))
if (Aura* aura = GetHolder()->GetAuraByEffectIndex(SpellEffectIndex(GetEffIndex(EFFECT_INDEX_0))))
{
aura->GetModifier()->m_amount = m_modifier.m_amount;
((Player*)target)->UpdateManaRegen();
// Disable continue
m_isPeriodic = false;
return;
}
return;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12719"
#define REVISION_NR "12720"
#endif // __REVISION_NR_H__