Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Server/Player: Agility does not provide armor.
Browse files Browse the repository at this point in the history
Signed-off-by: AriDEV <[email protected]>
  • Loading branch information
AriDEV committed Nov 26, 2019
1 parent c88f1da commit 951edd5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3414,8 +3414,6 @@ void Player::InitStatsForLevel(bool reapplyMods)
//set create powers
SetCreateMana(basemana);

SetArmor(int32(m_createStats[STAT_AGILITY]*2));

InitStatBuffMods();

//reset rating fields values
Expand Down Expand Up @@ -3473,8 +3471,8 @@ void Player::InitStatsForLevel(bool reapplyMods)
SetFloatValue(PLAYER_FIELD_PVP_POWER_DAMAGE, 0.0f);
SetFloatValue(PLAYER_FIELD_PVP_POWER_HEALING, 0.0f);

// set armor (resistance 0) to original value (create_agility*2)
SetArmor(int32(m_createStats[STAT_AGILITY]*2));
// set armor (resistance 0) to original value
SetArmor(0);
SetResistanceBuffMods(SpellSchools(0), true, 0.0f);
SetResistanceBuffMods(SpellSchools(0), false, 0.0f);
// set other resistance to original value (0)
Expand Down

0 comments on commit 951edd5

Please sign in to comment.