[3.3.5] Core/Pet: Make pet action bar autocast persist properly (#20110)

Partial revert of of 6c21ddd9b9.
Closes #16211.
This commit is contained in:
Necropola
2017-08-04 03:52:24 +02:00
committed by Treeston
parent 70a48ff182
commit 906498e9f4

2
src/server/game/Entities/Pet/Pet.cpp Normal file → Executable file
View File

@@ -1520,7 +1520,7 @@ bool Pet::removeSpell(uint32 spell_id, bool learn_prev, bool clear_ab)
}
// if remove last rank or non-ranked then update action bar at server and client if need
if (m_charmInfo->RemoveSpellFromActionBar(spell_id) && !learn_prev && clear_ab)
if (clear_ab && !learn_prev && m_charmInfo->RemoveSpellFromActionBar(spell_id))
{
if (!m_loading)
GetOwner()->PetSpellInitialize(); // need update action bar for last removed rank