Add change back in
This commit is contained in:
parent
3de99d8f83
commit
8f2d7a5008
@ -4754,11 +4754,9 @@ void Aura::PeriodicTick()
|
|||||||
target->HandleEmoteCommand(EMOTE_ONESHOT_EAT);
|
target->HandleEmoteCommand(EMOTE_ONESHOT_EAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Anger Management
|
// Setting the rage decay rate to the value of the spell/aura. Currently only works on players.
|
||||||
// amount = 1+ 16 = 17 = 3,4*5 = 10,2*5/3
|
|
||||||
// so 17 is rounded amount for 5 sec tick grow ~ 1 range grow in 3 sec
|
|
||||||
if (powerType == POWER_RAGE)
|
if (powerType == POWER_RAGE)
|
||||||
{ target->ModifyPower(powerType, m_modifier.m_amount * 3 / 5); }
|
target->ToPlayer()->m_rageDecayMultiplier = m_modifier.m_amount;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Here tick dummy auras
|
// Here tick dummy auras
|
||||||
@ -4781,6 +4779,7 @@ void Aura::PeriodicDummyTick()
|
|||||||
{
|
{
|
||||||
SpellEntry const* spell = GetSpellProto();
|
SpellEntry const* spell = GetSpellProto();
|
||||||
Unit* target = GetTarget();
|
Unit* target = GetTarget();
|
||||||
|
|
||||||
switch (spell->SpellFamilyName)
|
switch (spell->SpellFamilyName)
|
||||||
{
|
{
|
||||||
case SPELLFAMILY_GENERIC:
|
case SPELLFAMILY_GENERIC:
|
||||||
@ -5486,8 +5485,10 @@ void SpellAuraHolder::Update(uint32 diff)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
|
for (int32 i = 0; i < MAX_EFFECT_INDEX; ++i)
|
||||||
|
{
|
||||||
if (Aura* aura = m_auras[i])
|
if (Aura* aura = m_auras[i])
|
||||||
{ aura->UpdateAura(diff); }
|
{ aura->UpdateAura(diff); }
|
||||||
|
}
|
||||||
|
|
||||||
if (m_isHeartbeatSubject && m_duration)
|
if (m_isHeartbeatSubject && m_duration)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user