mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[8910] Implement spell 62124 damage part.
This commit is contained in:
parent
08c9f0a267
commit
94147f2b5a
3 changed files with 12 additions and 2 deletions
|
|
@ -2532,8 +2532,14 @@ void Spell::cast(bool skipCheck)
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_PALADIN:
|
case SPELLFAMILY_PALADIN:
|
||||||
{
|
{
|
||||||
|
// Hand of Reckoning
|
||||||
|
if (m_spellInfo->Id == 62124)
|
||||||
|
{
|
||||||
|
if (m_targets.getUnitTarget() && m_targets.getUnitTarget()->getVictim() != m_caster)
|
||||||
|
AddPrecastSpell(67485); // Hand of Rekoning (no typos in name ;) )
|
||||||
|
}
|
||||||
// Divine Shield, Divine Protection or Hand of Protection
|
// Divine Shield, Divine Protection or Hand of Protection
|
||||||
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000400080))
|
else if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000400080))
|
||||||
{
|
{
|
||||||
AddPrecastSpell(25771); // Forbearance
|
AddPrecastSpell(25771); // Forbearance
|
||||||
AddPrecastSpell(61987); // Avenging Wrath Marker
|
AddPrecastSpell(61987); // Avenging Wrath Marker
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,10 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
||||||
damage = unitTarget->GetMaxHealth() / 10;
|
damage = unitTarget->GetMaxHealth() / 10;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Hand of Rekoning (name not have typos ;) )
|
||||||
|
case 67485:
|
||||||
|
damage += uint32(0.5f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8909"
|
#define REVISION_NR "8910"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue