Core/Misc: Remove unneeded ToCreature() casts

Remove some ToCreature() casts not needed anymore after 1ee90e1022 changes that moved IsPet(), IsTotem(), IsSummon(), IsGuardian(), IsHunterPet() and IsVehicle() from Creature to Unit
This commit is contained in:
jackpoz
2015-08-12 14:05:14 +02:00
parent d243630acf
commit ea4d9c0d9e
7 changed files with 23 additions and 23 deletions

View File

@@ -1367,7 +1367,7 @@ public:
if (GetCaster()->GetOwner()->ToPlayer())
{
// Pet's base damage changes depending on happiness
if (GetCaster()->IsPet() && GetCaster()->ToPet()->IsHunterPet())
if (GetCaster()->IsPet() && GetCaster()->IsHunterPet())
{
switch (GetCaster()->ToPet()->GetHappinessState())
{