mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8245] Implement glyph 40906.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
bd1ea72043
commit
75510992a9
2 changed files with 8 additions and 4 deletions
|
|
@ -2547,8 +2547,9 @@ void Spell::EffectHeal( uint32 /*i*/ )
|
||||||
Aura *targetAura = NULL;
|
Aura *targetAura = NULL;
|
||||||
for(Unit::AuraList::const_iterator i = RejorRegr.begin(); i != RejorRegr.end(); ++i)
|
for(Unit::AuraList::const_iterator i = RejorRegr.begin(); i != RejorRegr.end(); ++i)
|
||||||
{
|
{
|
||||||
if((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DRUID
|
if ((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DRUID &&
|
||||||
&& ((*i)->GetSpellProto()->SpellFamilyFlags == 0x40 || (*i)->GetSpellProto()->SpellFamilyFlags == 0x10) )
|
// Regrowth or Rejuvenation 0x40 | 0x10
|
||||||
|
((*i)->GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000000050)))
|
||||||
{
|
{
|
||||||
if(!targetAura || (*i)->GetAuraDuration() < targetAura->GetAuraDuration())
|
if(!targetAura || (*i)->GetAuraDuration() < targetAura->GetAuraDuration())
|
||||||
targetAura = *i;
|
targetAura = *i;
|
||||||
|
|
@ -2570,7 +2571,10 @@ void Spell::EffectHeal( uint32 /*i*/ )
|
||||||
|
|
||||||
int32 tickheal = caster->SpellHealingBonus(unitTarget, targetAura->GetSpellProto(), targetAura->GetModifier()->m_amount, DOT);
|
int32 tickheal = caster->SpellHealingBonus(unitTarget, targetAura->GetSpellProto(), targetAura->GetModifier()->m_amount, DOT);
|
||||||
int32 tickcount = GetSpellDuration(targetAura->GetSpellProto()) / targetAura->GetSpellProto()->EffectAmplitude[idx];
|
int32 tickcount = GetSpellDuration(targetAura->GetSpellProto()) / targetAura->GetSpellProto()->EffectAmplitude[idx];
|
||||||
unitTarget->RemoveAurasDueToSpell(targetAura->GetId());
|
|
||||||
|
// Glyph of Swiftmend
|
||||||
|
if(!caster->HasAura(54824))
|
||||||
|
unitTarget->RemoveAurasDueToSpell(targetAura->GetId());
|
||||||
|
|
||||||
addhealth += tickheal * tickcount;
|
addhealth += tickheal * tickcount;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8244"
|
#define REVISION_NR "8245"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue