fix(Core/Spell): Earthliving weapon proc (#4015)

This commit is contained in:
Kitzunu
2021-01-08 20:18:36 +01:00
committed by GitHub
parent aeab8d8bc6
commit c5fe21fe9a
3 changed files with 51 additions and 11 deletions

View File

@@ -16640,16 +16640,6 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit* victim, Aura* aura, SpellInfo const
// Custom chances
switch (spellProto->SpellFamilyName)
{
case SPELLFAMILY_SHAMAN:
{
// Blessing of the Eternals, Earthliving proc
if (spellProto->SpellIconID == 1929)
{
if (victim && (float(victim->GetHealth() * 100.0f / victim->GetMaxHealth()) > 35.0f))
return roll_chance_f(chance);
}
break;
}
case SPELLFAMILY_WARRIOR:
{
// Recklessness, allow to proc only once for whirlwind