diff options
author | gvcoman <none@none> | 2008-11-20 20:27:04 -0500 |
---|---|---|
committer | gvcoman <none@none> | 2008-11-20 20:27:04 -0500 |
commit | 4495efa1aeaf58650dfcee95f709969cc33ce6c8 (patch) | |
tree | 844f5f69e73f6bcfd4b3bd306ca83bd38683e91e /src/game/Unit.h | |
parent | df6a8e5f8e11e914843db0dc9c41f3a415587cfd (diff) |
* Don't allow pets to attack in melee if owner is pacified. This applies for possessed "pets" as well.
* Use proper spell ID in unsummoning possessed units on channeling interrupt.
* Allow only once to init pet bar for CharmInfo
* Export CharmInfo to be available to scripts
* Allow to disable the melee attack command when initializing the pet action bar
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r-- | src/game/Unit.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h index 028c590c06f..e9e44804444 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -640,7 +640,7 @@ struct CharmSpellEntry typedef std::list<Player*> SharedVisionList; -struct CharmInfo +struct TRINITY_DLL_SPEC CharmInfo { public: explicit CharmInfo(Unit* unit); @@ -657,7 +657,7 @@ struct CharmInfo void InitPossessCreateSpells(); void InitCharmCreateSpells(); void InitPetActionBar(); - void InitEmptyActionBar(); + void InitEmptyActionBar(bool withAttack = true); //return true if successful bool AddSpellToAB(uint32 oldid, uint32 newid, ActiveStates newstate = ACT_DECIDE); void ToggleCreatureAutocast(uint32 spellid, bool apply); @@ -671,6 +671,7 @@ struct CharmInfo CommandStates m_CommandState; ReactStates m_reactState; uint32 m_petnumber; + bool m_barInit; }; // for clearing special attacks |