mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Fix possible bug with sending healing and damage bonuses to client.
--HG-- branch : trunk
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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);)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user