mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 20:02:25 +01:00
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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user