public static Creature GetCreatureOrPetOrVehicle(WorldObject u, ObjectGuid guid) { if (guid.IsPet()) { return(GetPet(u, guid)); } if (guid.IsCreatureOrVehicle()) { return(GetCreature(u, guid)); } return(null); }
public static Creature GetCreatureOrPetOrVehicle(WorldObject u, ObjectGuid guid) { if (guid.IsPet()) { return(GetPet(u, guid)); } if (guid.IsCreatureOrVehicle()) { return(GetCreature(u, guid)); } return(null); }