diff options
| -rw-r--r-- | src/game/Pet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 0c7e3970a94..ec22b24aeb1 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1232,6 +1232,12 @@ bool Pet::addSpell(uint32 spell_id, uint16 active, PetSpellState state, PetSpell { // can be in case spell loading but learned at some previous spell loading itr->second->state = PETSPELL_UNCHANGED; + + if(active == ACT_ENABLED) + ToggleAutocast(spell_id, true); + else if(active == ACT_DISABLED) + ToggleAutocast(spell_id, false); + return false; } else |
