mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7807] Drop dead code after switch to 3.0.x.
This commit is contained in:
parent
829649aac6
commit
1feff6365f
3 changed files with 1 additions and 33 deletions
|
|
@ -2380,29 +2380,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_HUNTER:
|
case SPELLFAMILY_HUNTER:
|
||||||
{
|
|
||||||
// Improved Aspect of the Viper
|
|
||||||
if( GetId()==38390 && m_target->GetTypeId()==TYPEID_PLAYER )
|
|
||||||
{
|
|
||||||
if(apply)
|
|
||||||
{
|
|
||||||
// + effect value for Aspect of the Viper
|
|
||||||
SpellModifier *mod = new SpellModifier;
|
|
||||||
mod->op = SPELLMOD_EFFECT1;
|
|
||||||
mod->value = m_modifier.m_amount;
|
|
||||||
mod->type = SPELLMOD_FLAT;
|
|
||||||
mod->spellId = GetId();
|
|
||||||
mod->mask = 0x4000000000000LL;
|
|
||||||
mod->mask2= 0LL;
|
|
||||||
|
|
||||||
m_spellmod = mod;
|
|
||||||
}
|
|
||||||
|
|
||||||
((Player*)m_target)->AddSpellMod(m_spellmod, apply);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case SPELLFAMILY_SHAMAN:
|
case SPELLFAMILY_SHAMAN:
|
||||||
{
|
{
|
||||||
// Improved Weapon Totems
|
// Improved Weapon Totems
|
||||||
|
|
|
||||||
|
|
@ -671,16 +671,6 @@ void Player::UpdateManaRegen()
|
||||||
power_regen_mp5 += GetStat(Stats(mod->m_miscvalue)) * mod->m_amount / 500.0f;
|
power_regen_mp5 += GetStat(Stats(mod->m_miscvalue)) * mod->m_amount / 500.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bonus from some dummy auras
|
|
||||||
AuraList const& mDummyAuras = GetAurasByType(SPELL_AURA_PERIODIC_DUMMY);
|
|
||||||
for(AuraList::const_iterator i = mDummyAuras.begin();i != mDummyAuras.end(); ++i)
|
|
||||||
if((*i)->GetId() == 34074) // Aspect of the Viper
|
|
||||||
{
|
|
||||||
power_regen_mp5 += (*i)->GetModifier()->m_amount * Intellect / 500.0f;
|
|
||||||
// Add regen bonus from level in this dummy
|
|
||||||
power_regen_mp5 += getLevel() * 35 / 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set regen rate in cast state apply only on spirit based regen
|
// Set regen rate in cast state apply only on spirit based regen
|
||||||
int32 modManaRegenInterrupt = GetTotalAuraModifier(SPELL_AURA_MOD_MANA_REGEN_INTERRUPT);
|
int32 modManaRegenInterrupt = GetTotalAuraModifier(SPELL_AURA_MOD_MANA_REGEN_INTERRUPT);
|
||||||
if (modManaRegenInterrupt > 100)
|
if (modManaRegenInterrupt > 100)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7806"
|
#define REVISION_NR "7807"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue