Core/Entities: completely remove 60% melee miss cap as there is no proof of its existence

Port From (https://github.com/TrinityCore/TrinityCore/commit/a6e84ebfabdaef50c9e0039dea4ec52b88827b26)
This commit is contained in:
hondacrx
2021-09-09 13:55:36 -04:00
parent 6e9d1ba1f7
commit 647aca03c2
2 changed files with 4 additions and 30 deletions
-22
View File
@@ -3609,28 +3609,6 @@ namespace Game.Spells
target.UpdateAllWeaponDependentCritAuras();
}
[AuraEffectHandler(AuraType.ModHitChance)]
void HandleModHitChance(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
{
if (!mode.HasAnyFlag((AuraEffectHandleModes.ChangeAmountMask | AuraEffectHandleModes.Stat)))
return;
Unit target = aurApp.GetTarget();
// handle stack rules
if (target.IsTypeId(TypeId.Player))
{
target.ToPlayer().UpdateMeleeHitChances();
target.ToPlayer().UpdateRangedHitChances();
}
else
{
float value = target.GetTotalAuraModifier(AuraType.ModHitChance);
target.ModMeleeHitChance = value;
target.ModRangedHitChance = value;
}
}
[AuraEffectHandler(AuraType.ModSpellHitChance)]
void HandleModSpellHitChance(AuraApplication aurApp, AuraEffectHandleModes mode, bool apply)
{