[11026] Implement damage reduction part of spell 50720

This commit is contained in:
VladimirMangos 2011-01-17 18:04:26 +03:00
parent 62da77153d
commit 5099b9133c
4 changed files with 12 additions and 1 deletions

View file

@ -2904,8 +2904,10 @@ void Spell::cast(bool skipCheck)
{
// Shield Slam
if ((m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000020000000000)) && m_spellInfo->Category==1209)
{
if (m_caster->HasAura(58375)) // Glyph of Blocking
AddTriggeredSpell(58374); // Glyph of Blocking
}
break;
}
case SPELLFAMILY_PRIEST:

View file

@ -8523,6 +8523,11 @@ void SpellAuraHolder::HandleSpellSpecificBoosts(bool apply)
{
switch(GetId())
{
case 50720: // Vigilance (warrior spell but not have warrior family)
{
spellId1 = 68066; // Damage Reduction
break;
}
case 57350: // Illusionary Barrier
{
if (!apply && m_target->getPowerType() == POWER_MANA)

View file

@ -1865,6 +1865,10 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
if (spellInfo_1->SpellIconID == 3559 && spellInfo_2->SpellIconID == 3559)
return false;
// Vigilance and Damage Reduction (Vigilance triggered spell)
if (spellInfo_1->SpellIconID == 2834 && spellInfo_2->SpellIconID == 2834)
return false;
break;
}
case SPELLFAMILY_MAGE:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11025"
#define REVISION_NR "11026"
#endif // __REVISION_NR_H__