mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[8987] Allow swap spell and command/reaction in pet action bar.
* Also prevent command/action drop from action bar * Pet action bar will recetn at this revision use single time for all pets. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
b59052ab42
commit
4e55757a94
4 changed files with 51 additions and 16 deletions
|
|
@ -414,8 +414,7 @@ void Pet::SavePetToDB(PetSaveMode mode)
|
|||
<< curmana << ", "
|
||||
<< GetPower(POWER_HAPPINESS) << ", '";
|
||||
|
||||
// save only spell slots from action bar
|
||||
for(uint32 i = ACTION_BAR_INDEX_PET_SPELL_START; i < ACTION_BAR_INDEX_PET_SPELL_END; ++i)
|
||||
for(uint32 i = ACTION_BAR_INDEX_START; i < ACTION_BAR_INDEX_END; ++i)
|
||||
{
|
||||
ss << uint32(m_charmInfo->GetActionBarEntry(i)->GetType()) << " "
|
||||
<< uint32(m_charmInfo->GetActionBarEntry(i)->GetAction()) << " ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue