mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[12720] This should fix "drink" spells - removed double " return"
This commit is contained in:
parent
32ff8f89c7
commit
69cb04b8a8
2 changed files with 4 additions and 4 deletions
|
|
@ -8417,7 +8417,7 @@ void Aura::PeriodicDummyTick()
|
||||||
target->CastSpell(target, 68873, true);
|
target->CastSpell(target, 68873, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Exist more after, need add later
|
// Exist more after, need add later
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -8427,14 +8427,14 @@ void Aura::PeriodicDummyTick()
|
||||||
{
|
{
|
||||||
if (target->GetTypeId() != TYPEID_PLAYER)
|
if (target->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Search SPELL_AURA_MOD_POWER_REGEN aura for this spell and add bonus
|
// 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;
|
aura->GetModifier()->m_amount = m_modifier.m_amount;
|
||||||
((Player*)target)->UpdateManaRegen();
|
((Player*)target)->UpdateManaRegen();
|
||||||
// Disable continue
|
// Disable continue
|
||||||
m_isPeriodic = false;
|
m_isPeriodic = false;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12719"
|
#define REVISION_NR "12720"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue