Core/Misc: Remove unneeded ToCreature() casts

Remove some ToCreature() casts not needed anymore after 1ee90e1022 changes that moved IsPet() from Creature to Unit
This commit is contained in:
jackpoz
2015-08-12 12:48:33 +02:00
parent 5f0f152345
commit d243630acf
8 changed files with 31 additions and 31 deletions

View File

@@ -421,7 +421,7 @@ public:
target->ToPlayer()->SendTalentsInfoData(false);
return true;
}
else if (target->ToCreature()->IsPet())
else if (target->IsPet())
{
Unit* owner = target->GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER && ((Pet*)target)->IsPermanentPetFor(owner->ToPlayer()))