diff options
| author | QAston <none@none> | 2009-03-10 19:41:58 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-03-10 19:41:58 +0100 |
| commit | e376e2c940ecfa4e54c82abf1bd51e243e496385 (patch) | |
| tree | a34227e8bcec3119f3cbfb14c899ac90cb1b984e /src | |
| parent | 43d8fe63948b5ef7bb17e5bda683734365ad2776 (diff) | |
*Fix possible bug with sending healing and damage bonuses to client.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/StatSystem.cpp | 6 | ||||
| -rw-r--r-- | src/game/Unit.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
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() diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index df94f19f9c7..8e2e6dba243 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3782,7 +3782,7 @@ bool Unit::AddAura(Aura *Aur) bool stackModified=false; // passive and persistent auras can stack with themselves any number of times - if (!Aur->IsPassive() && !Aur->IsPersistent() Aur->GeId()!=44413) + if (!Aur->IsPassive() && !Aur->IsPersistent() && Aur->GetId()!=44413) { for(AuraMap::iterator i2 = m_Auras.lower_bound(spair); i2 != m_Auras.upper_bound(spair);) { |
