diff --git a/src/game/Spell.h b/src/game/Spell.h index 2e0df308a..cff45c58d 100644 --- a/src/game/Spell.h +++ b/src/game/Spell.h @@ -436,7 +436,7 @@ class Spell //void HandleAddAura(Unit* Target); SpellEntry const* m_spellInfo; - int32 m_currentBasePoints[3]; // cache SpellEntry::EffectBasePoints and use for set custom base points + int32 m_currentBasePoints[MAX_EFFECT_INDEX]; // cache SpellEntry::CalculateSimpleValue and use for set custom base points Item* m_CastItem; uint8 m_cast_count; uint32 m_glyphIndex; diff --git a/src/game/SpellAuras.h b/src/game/SpellAuras.h index 076eebebb..ecc81fcc1 100644 --- a/src/game/SpellAuras.h +++ b/src/game/SpellAuras.h @@ -373,7 +373,7 @@ class MANGOS_DLL_SPEC Aura uint64 m_castItemGuid; // it is NOT safe to keep a pointer to the item because it may get deleted time_t m_applyTime; - int32 m_currentBasePoints; // cache SpellEntry::EffectBasePoints+1 and use for set custom base points + int32 m_currentBasePoints; // cache SpellEntry::CalculateSimpleValue and use for set custom base points int32 m_maxduration; // Max aura duration int32 m_duration; // Current time int32 m_timeCla; // Timer for power per sec calcultion diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index f6d924351..43c1ccdf4 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6701,7 +6701,7 @@ void Spell::EffectReputation(SpellEffectIndex eff_idx) Player *_player = (Player*)unitTarget; - int32 rep_change = m_currentBasePoints[eff_idx]; // field store reputation change -1 + int32 rep_change = m_currentBasePoints[eff_idx]; uint32 faction_id = m_spellInfo->EffectMiscValue[eff_idx]; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5afe8e9f8..1ac984446 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9758" + #define REVISION_NR "9759" #endif // __REVISION_NR_H__