diff options
| author | megamage <none@none> | 2009-05-03 22:29:32 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-03 22:29:32 -0500 |
| commit | 7181ec3b9acd788b35411562ad9dc898712d6c05 (patch) | |
| tree | 925f090d1333b13acd112f12666742dc85bcb6b7 /src | |
| parent | bb37911480995e432daf1c6dad31ccd4616c23ae (diff) | |
[7752] Correctly restore autocast state for spells at spell loading. Author: Az@zel
--HG--
branch : trunk
Diffstat (limited to 'src')
| -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 |
