mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Players: Fixed base hit chance initialization for players
This commit is contained in:
@@ -157,6 +157,10 @@ Player::Player(WorldSession* session) : Unit(true), m_sceneMgr(this)
|
||||
|
||||
m_session = session;
|
||||
|
||||
m_modMeleeHitChance = 7.5f;
|
||||
m_modRangedHitChance = 7.5f;
|
||||
m_modSpellHitChance = 15.0f;
|
||||
|
||||
m_ingametime = 0;
|
||||
m_sharedQuestId = 0;
|
||||
|
||||
|
||||
@@ -355,18 +355,9 @@ Unit::Unit(bool isWorldObject) :
|
||||
m_floatStatNegBuff = { };
|
||||
|
||||
m_attacking = nullptr;
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
m_modMeleeHitChance = 7.5f;
|
||||
m_modRangedHitChance = 7.5f;
|
||||
m_modSpellHitChance = 15.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_modMeleeHitChance = 0.0f;
|
||||
m_modRangedHitChance = 0.0f;
|
||||
m_modSpellHitChance = 0.0f;
|
||||
}
|
||||
m_modMeleeHitChance = 0.0f;
|
||||
m_modRangedHitChance = 0.0f;
|
||||
m_modSpellHitChance = 0.0f;
|
||||
m_baseSpellCritChance = 5;
|
||||
|
||||
m_speed_rate.fill(1.0f);
|
||||
|
||||
Reference in New Issue
Block a user