mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11026] Implement damage reduction part of spell 50720
This commit is contained in:
parent
62da77153d
commit
5099b9133c
4 changed files with 12 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11025"
|
||||
#define REVISION_NR "11026"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue