Core: more 3.3.5a ports

This commit is contained in:
Aokromes committed 2016-05-04 17:32:40 +02:00
1 parent eb6fb8046b
commit b7b5341fdf
1 file changed
+3 -5
+3 -5
View File
@@ -5734,14 +5734,13 @@ bool Player::UpdateSkillPro(uint16 skillId, int32 chance, uint32 step)
static uint32 bonusSkillLevels[] = { 75, 150, 225, 300, 375, 450, 525 };
static const size_t bonusSkillLevelsSize = sizeof(bonusSkillLevels) / sizeof(uint32);
TC_LOG_DEBUG("entities.player.skills", "UpdateSkillPro(SkillId %d, Chance %3.1f%%)", SkillId, Chance / 10.0f);
TC_LOG_DEBUG("entities.player.skills", "UpdateSkillPro(SkillId %d, Chance %3.1f%%)", skillId, chance / 10.0f);
if (!skillId)
return false;
if (chance <= 0) // speedup in 0 chance case
{
TC_LOG_DEBUG("entities.player.skills", "Player::UpdateSkillPro: Player '%s' (%s), SkillID: %u, Chance: %3.1f%% missed",
GetName().c_str(), GetGUID().ToString().c_str(), SkillId, Chance / 10.0f);
TC_LOG_DEBUG("entities.player.skills", "Player::UpdateSkillPro Chance=%3.1f%% missed", chance / 10.0f);
return false;
}
@@ -5760,8 +5759,7 @@ bool Player::UpdateSkillPro(uint16 skillId, int32 chance, uint32 step)
if (irand(1, 1000) > chance)
{
TC_LOG_DEBUG("entities.player.skills", "Player::UpdateSkillPro: Player '%s' (%s), SkillID: %u, Chance: %3.1f%% missed",
GetName().c_str(), GetGUID().ToString().c_str(), SkillId, Chance / 10.0f);
TC_LOG_DEBUG("entities.player.skills", "Player::UpdateSkillPro Chance=%3.1f%% missed", chance / 10.0f);
return false;
}