mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10642] Implement spell 56826
This commit is contained in:
parent
46d740bbf4
commit
8f71d95c0d
2 changed files with 33 additions and 21 deletions
|
|
@ -7254,8 +7254,10 @@ uint32 Unit::MeleeDamageBonusDone(Unit *pVictim, uint32 pdamage,WeaponAttackType
|
|||
}
|
||||
}
|
||||
|
||||
if (spellProto)
|
||||
{
|
||||
// Frost Strike
|
||||
if (spellProto && spellProto->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && spellProto->SpellFamilyFlags & UI64LIT(0x0000000400000000))
|
||||
if (spellProto->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && spellProto->SpellFamilyFlags & UI64LIT(0x0000000400000000))
|
||||
{
|
||||
// search disease
|
||||
bool found = false;
|
||||
|
|
@ -7283,6 +7285,16 @@ uint32 Unit::MeleeDamageBonusDone(Unit *pVictim, uint32 pdamage,WeaponAttackType
|
|||
}
|
||||
}
|
||||
}
|
||||
// Glyph of Steady Shot (Steady Shot check)
|
||||
else if (spellProto->SpellFamilyName == SPELLFAMILY_HUNTER && spellProto->SpellFamilyFlags & UI64LIT(0x0000000100000000))
|
||||
{
|
||||
// search for glyph dummy aura
|
||||
if (Aura *aur = GetDummyAura(56826))
|
||||
// check for Serpent Sting
|
||||
if (Aura *serpentSting = pVictim->GetAura(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_HUNTER, UI64LIT(0x0000000000004000)))
|
||||
DonePercent *= (aur->GetModifier()->m_amount+100.0f) / 100.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// final calculation
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10641"
|
||||
#define REVISION_NR "10642"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue