*Allow pets to cast devour magic on both friends and enemies.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-10 15:14:49 -06:00
parent 4182df058c
commit bcb39b263d
5 changed files with 61 additions and 26 deletions
+3 -1
View File
@@ -871,6 +871,8 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
bool IsHostileToPlayers() const;
bool IsFriendlyTo(Unit const* unit) const;
bool IsNeutralToAll() const;
bool IsInPartyWith(Unit const* unit) const;
bool IsInRaidWith(Unit const* unit) const;
bool IsContestedGuard() const
{
if(FactionTemplateEntry const* entry = getFactionTemplateEntry())
@@ -1055,7 +1057,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
return this;
}
Player* GetCharmerOrOwnerPlayerOrPlayerItself();
Player* GetCharmerOrOwnerPlayerOrPlayerItself() const;
void SetPet(Pet* pet);
void SetCharm(Unit* pet);