Remove a hack (added by someone that will NOt be NAMEd) that caused too high experience bonus for heirlooms. Heirloom experience bonus was already handled perfectly.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-26 02:02:59 +02:00
parent 2b29d4e65d
commit 4357846c3c
@@ -2627,13 +2627,6 @@ void Player::GiveXP(uint32 xp, Unit* victim)
// XP resting bonus for kill
uint32 rested_bonus_xp = victim ? GetXPRestBonus(xp) : 0;
// Heirloom Experience Bonus
float heirloomModifier = 1.0f;
for (int i = 0; i < EQUIPMENT_SLOT_END; ++i)
if (m_items[i] && m_items[i]->GetProto()->Spells->SpellId == 57353)
heirloomModifier += 0.1f;
xp = uint32(xp * heirloomModifier);
SendLogXPGain(xp,victim,rested_bonus_xp);
uint32 curXP = GetUInt32Value(PLAYER_XP);