Changeset 277 for trunk/src/game/Unit.h

Show
Ignore:
Timestamp:
11/22/08 00:35:58 (17 years ago)
Author:
yumileroy
Message:

* 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

Original author: gvcoman
Date: 2008-11-20 20:27:04-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.h

    r272 r277  
    641641typedef std::list<Player*> SharedVisionList; 
    642642 
    643 struct CharmInfo 
     643struct TRINITY_DLL_SPEC CharmInfo 
    644644{ 
    645645    public: 
     
    658658        void InitCharmCreateSpells(); 
    659659        void InitPetActionBar(); 
    660         void InitEmptyActionBar(); 
     660        void InitEmptyActionBar(bool withAttack = true); 
    661661                                                            //return true if successful 
    662662        bool AddSpellToAB(uint32 oldid, uint32 newid, ActiveStates newstate = ACT_DECIDE); 
     
    672672        ReactStates     m_reactState; 
    673673        uint32          m_petnumber; 
     674        bool            m_barInit; 
    674675}; 
    675676