diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index a93747d1b..1287d0051 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1677,8 +1677,13 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply) if (i == m_autospells.size()) { m_autospells.push_back(spellid); - itr->second->active = ACT_ENABLED; - itr->second->state = PETSPELL_CHANGED; + + if(itr->second->active != ACT_ENABLED) + { + itr->second->active = ACT_ENABLED; + if(itr->second->state != PETSPELL_NEW) + itr->second->state = PETSPELL_CHANGED; + } } } else @@ -1690,8 +1695,12 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply) if (i < m_autospells.size()) { m_autospells.erase(itr2); - itr->second->active = ACT_DISABLED; - itr->second->state = PETSPELL_CHANGED; + if(itr->second->active != ACT_DISABLED) + { + itr->second->active = ACT_DISABLED; + if(itr->second->state != PETSPELL_NEW) + itr->second->state = PETSPELL_CHANGED; + } } } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index fd06019e5..f38b4b985 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 "7750" + #define REVISION_NR "7751" #endif // __REVISION_NR_H__