diff options
| author | QAston <qaston@gmail.com> | 2011-06-08 09:19:34 +0200 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-06-08 09:19:34 +0200 |
| commit | 0575dddbb3865cfd4f822fefdff92aa4e024afc9 (patch) | |
| tree | 2afcfb1ed44c4f43735ba33b9d1b611d0ec2c41b /src/server/game/Entities | |
| parent | 72b73d2cb9c6835635f46eefa9ca39b8468e1542 (diff) | |
Core/Auras: Fix visibility aura effect handlers to work correctly on amount change
Diffstat (limited to 'src/server/game/Entities')
| -rwxr-xr-x | src/server/game/Entities/Player/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 3ed5f36d46f..e4b203adb38 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -6455,13 +6455,13 @@ void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal) AuraEffectList const& mModSkill = GetAuraEffectsByType(SPELL_AURA_MOD_SKILL); for (AuraEffectList::const_iterator j = mModSkill.begin(); j != mModSkill.end(); ++j) if ((*j)->GetMiscValue() == int32(id)) - (*j)->HandleEffect(this, 0, true); + (*j)->HandleEffect(this, AURA_EFFECT_HANDLE_SKILL, true); // permanent bonuses AuraEffectList const& mModSkillTalent = GetAuraEffectsByType(SPELL_AURA_MOD_SKILL_TALENT); for (AuraEffectList::const_iterator j = mModSkillTalent.begin(); j != mModSkillTalent.end(); ++j) if ((*j)->GetMiscValue() == int32(id)) - (*j)->HandleEffect(this, 0, true); + (*j)->HandleEffect(this, AURA_EFFECT_HANDLE_SKILL, true); // Learn all spells for skill learnSkillRewardedSpells(id, newVal); |
