From 85a13fcc33723af4d63c8b6b7e6f7a87e805b70c Mon Sep 17 00:00:00 2001 From: Warlord123 Date: Fri, 24 Jun 2011 05:53:18 +0400 Subject: [PATCH] [11666] Warrior T10 Protection 4P Bonus Signed-off-by: VladimirMangos --- src/game/Spell.cpp | 6 ++++++ src/game/SpellAuras.cpp | 5 +++++ src/shared/revision_nr.h | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 7e821ed94..37d827021 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3014,6 +3014,12 @@ void Spell::cast(bool skipCheck) if (m_caster->HasAura(58375)) // Glyph of Blocking AddTriggeredSpell(58374); // Glyph of Blocking } + // Bloodrage + if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000000100)) + { + if (m_caster->HasAura(70844)) // Item - Warrior T10 Protection 4P Bonus + AddTriggeredSpell(70845); // Stoicism + } // Bloodsurge (triggered), Sudden Death (triggered) else if (m_spellInfo->Id == 46916 || m_spellInfo->Id == 52437) // Item - Warrior T10 Melee 4P Bonus diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 9b171bc18..d5c25d272 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -6817,6 +6817,11 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real) float DoneActualBenefit = 0.0f; switch(spellProto->SpellFamilyName) { + case SPELLFAMILY_GENERIC: + // Stoicism + if (spellProto->Id == 70845) + DoneActualBenefit = caster->GetMaxHealth() * 0.20f; + break; case SPELLFAMILY_PRIEST: // Power Word: Shield if (spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000001)) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9b3a0f595..5256f4e23 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11665" + #define REVISION_NR "11666" #endif // __REVISION_NR_H__