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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user