Core/Pet: Make pet action bar autocast persist properly

Port From (https://github.com/TrinityCore/TrinityCore/commit/885e172f4d29710a47f003c58b4d9c24edf8cc8a)
This commit is contained in:
hondacrx
2020-08-24 11:14:54 -04:00
parent 24a9e5e1d8
commit 7cf9b6183e
+1 -1
View File
@@ -1235,7 +1235,7 @@ namespace Game.Entities
}
// if remove last rank or non-ranked then update action bar at server and client if need
if (GetCharmInfo().RemoveSpellFromActionBar(spellId) && !learnPrev && clearActionBar)
if (clearActionBar && !learnPrev && GetCharmInfo().RemoveSpellFromActionBar(spellId))
{
if (!m_loading)
{