mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7916] Fixed pet action bar setup.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
27057843ac
commit
902252c1e9
2 changed files with 4 additions and 2 deletions
|
|
@ -10319,13 +10319,15 @@ CharmInfo::CharmInfo(Unit* unit)
|
||||||
void CharmInfo::InitPetActionBar()
|
void CharmInfo::InitPetActionBar()
|
||||||
{
|
{
|
||||||
// the first 3 SpellOrActions are attack, follow and stay
|
// the first 3 SpellOrActions are attack, follow and stay
|
||||||
|
// last 3 SpellOrActions are reactions
|
||||||
for(uint32 i = 0; i < 3; ++i)
|
for(uint32 i = 0; i < 3; ++i)
|
||||||
{
|
{
|
||||||
SetActionBar(i,COMMAND_ATTACK - i,ACT_COMMAND);
|
SetActionBar(i,COMMAND_ATTACK - i,ACT_COMMAND);
|
||||||
SetActionBar(i + 7,COMMAND_ATTACK - i,ACT_REACTION);
|
SetActionBar(i + 7,COMMAND_ATTACK - i,ACT_REACTION);
|
||||||
}
|
}
|
||||||
|
// middle 4 SpellOrActions are spells/special attacks/abilities
|
||||||
for(uint32 i = 0; i < 4; ++i)
|
for(uint32 i = 0; i < 4; ++i)
|
||||||
SetActionBar(i,0,ACT_DISABLED);
|
SetActionBar(i + 3,0,ACT_DISABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CharmInfo::InitEmptyActionBar()
|
void CharmInfo::InitEmptyActionBar()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7915"
|
#define REVISION_NR "7916"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue