fix(Scripts/Spells): Fixed Enrage armor reduce part. Source: TrinityCore. (#8625)

Fixes #8623
This commit is contained in:
UltraNix
2021-10-21 20:48:49 +02:00
committed by GitHub
parent cb0120a21b
commit cbabc54659
4 changed files with 106 additions and 39 deletions

View File

@@ -519,17 +519,6 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
case SPELL_AURA_MANA_SHIELD:
m_canBeRecalculated = false;
break;
case SPELL_AURA_MOD_BASE_RESISTANCE_PCT:
if (!caster)
break;
if (GetSpellInfo()->SpellFamilyName == SPELLFAMILY_DRUID)
{
if (GetId() == 1178 && caster->HasAura(5229) && !caster->HasAura(70726)) // Feral t10 4p
amount -= 48; // percentage
else if (GetId() == 9635 && caster->HasAura(5229) && !caster->HasAura(70726)) // Feral t10 4p
amount -= 57; // percentage
}
break;
case SPELL_AURA_MOD_DAMAGE_PERCENT_DONE:
// Titan's Grip
if (!caster)