From e376e2c940ecfa4e54c82abf1bd51e243e496385 Mon Sep 17 00:00:00 2001 From: QAston Date: Tue, 10 Mar 2009 19:41:58 +0100 Subject: *Fix possible bug with sending healing and damage bonuses to client. --HG-- branch : trunk --- src/game/StatSystem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/StatSystem.cpp') diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index 5d31614cecb..10f79a8cb4c 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -114,15 +114,15 @@ void Player::ApplySpellDamageBonus(int32 amount, bool apply) { m_baseSpellDamage+=apply?amount:-amount; // For speed just update for client - ApplyModUInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, amount, apply); + for(int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; i++) + ApplyModUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, amount, apply); } void Player::ApplySpellHealingBonus(int32 amount, bool apply) { m_baseSpellHealing+=apply?amount:-amount; // For speed just update for client - for(int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; i++) - ApplyModUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, amount, apply);; + ApplyModUInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, amount, apply); } void Player::UpdateSpellDamageAndHealingBonus() -- cgit v1.2.3