По части Warrior T10 Protection 4P Bonus:
Обновлен вариант
Warlord123
Код:
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index c4ea959..a427280 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2989,6 +2989,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 a08c2e8..fe59b35 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6838,6 +6838,11 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
DoneActualBenefit = caster->SpellBaseHealingBonusDone(GetSpellSchoolMask(spellProto)) * 0.75f;
}
break;
+ case SPELLFAMILY_GENERIC:
+ // Stoicism
+ if (spellProto->Id == 70845)
+ DoneActualBenefit = caster->GetMaxHealth() * 0.20f;
+ break;
default:
break;
}
И есть еще мой вариант, скорее не правильный:
Код:
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index a08c2e8..12a6c1b 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -8987,6 +8987,23 @@ void SpellAuraHolder::HandleSpellSpecificBoosts(bool apply)
spellId1 = 30069; // Blood Frenzy (Rank 1)
spellId2 = 30070; // Blood Frenzy (Rank 2)
}
+
+ // Bloodrage
+ if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000100))
+ {
+ if (apply)
+ {
+ Unit* caster = GetCaster();
+ if (caster->HasAura(70844)) // Item - Warrior T10 Protection 4P Bonus
+ {
+ int32 bp0 = caster->GetMaxHealth() * 0.20f;
+ caster->CastCustomSpell(caster, 70845, &bp0, NULL, NULL, true);
+ }
+ }
+ else
+ return;
+ break;
+ }
break;
}
case SPELLFAMILY_WARLOCK:
Может и не верно сунуть это в HandleSpellSpecificBoosts.
Вариант
Warlord123 кажется правильнее.
По части Warrior T10 Melee 4P Bonus уже принято, это что бы не запутаться.