Core/Players: Fixed base hit chance initialization for players

Port From (https://github.com/TrinityCore/TrinityCore/commit/1f8eddc4f0cf443c45a930bc919007541210984a)
This commit is contained in:
hondacrx
2023-08-28 11:19:01 -04:00
parent c9ab9e4635
commit 8bef51cf6e
4 changed files with 13 additions and 12 deletions
+3 -6
View File
@@ -60,12 +60,9 @@ namespace Game.Entities
for (byte i = 0; i < (int)WeaponAttackType.Max; ++i)
m_weaponDamage[i] = new float[] { 1.0f, 2.0f };
if (IsTypeId(TypeId.Player))
{
ModMeleeHitChance = 7.5f;
ModRangedHitChance = 7.5f;
ModSpellHitChance = 15.0f;
}
ModMeleeHitChance = 0.0f;
ModRangedHitChance = 0.0f;
ModSpellHitChance = 0.0f;
BaseSpellCritChance = 5;
for (byte i = 0; i < (int)UnitMoveType.Max; ++i)