[7794] Add DK pet type support for proper show it in client Pet tab. Author: Astellar

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-08 18:43:06 -05:00
parent 5346498dea
commit d72855e25f
3 changed files with 30 additions and 8 deletions
+4
View File
@@ -126,6 +126,8 @@ typedef std::vector<uint32> AutoSpellList;
#define PET_FOLLOW_DIST 1
#define PET_FOLLOW_ANGLE (M_PI/2)
class Player;
class Pet : public Guardian
{
public:
@@ -140,6 +142,8 @@ class Pet : public Guardian
bool isControlled() const { return getPetType()==SUMMON_PET || getPetType()==HUNTER_PET; }
bool isTemporarySummoned() const { return m_duration > 0; }
bool IsPermanentPetFor(Player* owner); // pet have tab in character windows and set UNIT_FIELD_PETNUMBER
bool Create (uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 pet_number);
bool CreateBaseAtCreature(Creature* creature);
bool LoadPetFromDB( Player* owner,uint32 petentry = 0,uint32 petnumber = 0, bool current = false );