diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Pet.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index cd920852952..5f89d71ff53 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1447,8 +1447,13 @@ void Pet::CleanupActionBar() { for(int i = 0; i < MAX_UNIT_ACTION_BAR_INDEX; ++i) if(UnitActionBarEntry const* ab = m_charmInfo->GetActionBarEntry(i)) - if(ab->SpellOrAction && ab->IsActionBarForSpell() && !HasSpell(ab->SpellOrAction)) - m_charmInfo->SetActionBar(i,0,ACT_DISABLED); + if(ab->SpellOrAction && ab->IsActionBarForSpell()) + { + if(!HasSpell(ab->SpellOrAction)) + m_charmInfo->SetActionBar(i, 0, ACT_PASSIVE); + else if(ab->Type == ACT_ENABLED) + ToggleAutocast(ab->SpellOrAction, true); + } } void Pet::InitPetCreateSpells() |