Core/Misc: Include resilience in character_stats

This commit is contained in:
Shocker
2011-05-09 17:01:10 +03:00
parent 8a2b1c302b
commit 3fa651ce19
3 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -18757,7 +18757,7 @@ void Player::_SaveStats(SQLTransaction& trans)
std::ostringstream ss;
ss << "INSERT INTO character_stats (guid, maxhealth, maxpower1, maxpower2, maxpower3, maxpower4, maxpower5, maxpower6, maxpower7, "
"strength, agility, stamina, intellect, spirit, armor, resHoly, resFire, resNature, resFrost, resShadow, resArcane, "
"blockPct, dodgePct, parryPct, critPct, rangedCritPct, spellCritPct, attackPower, rangedAttackPower, spellPower) VALUES ("
"blockPct, dodgePct, parryPct, critPct, rangedCritPct, spellCritPct, attackPower, rangedAttackPower, spellPower, resilience) VALUES ("
<< GetGUIDLow() << ", "
<< GetMaxHealth() << ", ";
for (uint8 i = 0; i < MAX_POWERS; ++i)
@@ -18775,7 +18775,8 @@ void Player::_SaveStats(SQLTransaction& trans)
<< GetFloatValue(PLAYER_SPELL_CRIT_PERCENTAGE1) << ", "
<< GetUInt32Value(UNIT_FIELD_ATTACK_POWER) << ", "
<< GetUInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) << ", "
<< GetBaseSpellPowerBonus() << ")";
<< GetBaseSpellPowerBonus() << ", "
<< GetUInt32Value(PLAYER_FIELD_COMBAT_RATING_1 + CR_CRIT_TAKEN_SPELL) << ")";
trans->Append(ss.str().c_str());
}