mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 19:13:49 +00:00
fix(Scripts/Spells): Fixed Enrage armor reduce part. Source: TrinityCore. (#8625)
Fixes #8623
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1843,25 +1843,6 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
|
||||
target->RemoveAura(63531);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case SPELLFAMILY_DRUID:
|
||||
if (!caster)
|
||||
break;
|
||||
// Reduce base armor of bear form and dire bear form
|
||||
if (GetId() == 5229)
|
||||
{
|
||||
if (target->HasAura(70726)) // Item - Druid T10 Feral 4P Bonus
|
||||
{
|
||||
if (apply)
|
||||
target->CastSpell(target, 70725, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Enrage armor reduction
|
||||
target->HandleStatModifier(UNIT_MOD_ARMOR, BASE_PCT, target->GetShapeshiftForm() == FORM_DIREBEAR ? -16.0f : -27.0f, apply);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user